2012-05-17 19:42:38 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-11-20 22:59:46 +00:00
|
|
|
|
2012-01-10 19:19:56 +00:00
|
|
|
#include "nsISupports.idl"
|
2011-11-20 22:59:46 +00:00
|
|
|
|
2012-01-10 19:19:56 +00:00
|
|
|
%{C++
|
2013-02-05 11:10:39 +00:00
|
|
|
#define MOBILE_MESSAGE_DATABASE_SERVICE_CID \
|
|
|
|
{ 0x0d84b9c2, 0x8f76, 0x4ba4, \
|
|
|
|
{ 0xa5, 0xcd, 0xdb, 0xfb, 0x01, 0xdf, 0xda, 0x99 } }
|
|
|
|
#define MOBILE_MESSAGE_DATABASE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessagedatabaseservice;1"
|
2012-01-10 19:19:56 +00:00
|
|
|
%}
|
2011-11-20 22:59:46 +00:00
|
|
|
|
2013-04-09 02:21:25 +00:00
|
|
|
interface nsICursorContinueCallback;
|
2012-01-17 18:42:05 +00:00
|
|
|
interface nsIDOMMozSmsFilter;
|
2013-03-09 07:22:02 +00:00
|
|
|
interface nsIMobileMessageCallback;
|
2013-04-09 02:21:25 +00:00
|
|
|
interface nsIMobileMessageCursorCallback;
|
2012-01-17 18:42:05 +00:00
|
|
|
|
2013-04-25 10:02:36 +00:00
|
|
|
[scriptable, uuid(ea6f49ae-3a4c-47eb-a489-15578e634100)]
|
2013-02-05 11:10:39 +00:00
|
|
|
interface nsIMobileMessageDatabaseService : nsISupports
|
2011-11-20 22:59:46 +00:00
|
|
|
{
|
2012-11-06 21:29:30 +00:00
|
|
|
[binaryname(GetMessageMoz)]
|
2013-03-09 07:22:02 +00:00
|
|
|
void getMessage(in long messageId,
|
|
|
|
in nsIMobileMessageCallback request);
|
|
|
|
|
2013-04-25 10:02:36 +00:00
|
|
|
void deleteMessage([array, size_is(count)] in long messageIds,
|
|
|
|
in uint32_t count,
|
2013-03-09 07:22:02 +00:00
|
|
|
in nsIMobileMessageCallback request);
|
|
|
|
|
2013-04-09 02:21:25 +00:00
|
|
|
nsICursorContinueCallback createMessageCursor(in nsIDOMMozSmsFilter filter,
|
|
|
|
in boolean reverse,
|
|
|
|
in nsIMobileMessageCursorCallback callback);
|
2012-11-14 19:49:56 +00:00
|
|
|
|
2013-03-09 07:22:02 +00:00
|
|
|
void markMessageRead(in long messageId,
|
|
|
|
in boolean value,
|
|
|
|
in nsIMobileMessageCallback request);
|
|
|
|
|
2013-04-09 02:21:50 +00:00
|
|
|
nsICursorContinueCallback createThreadCursor(in nsIMobileMessageCursorCallback callback);
|
2011-11-20 22:59:46 +00:00
|
|
|
};
|