|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #include "nsISupports.idl" |
|
6 |
|
7 %{C++ |
|
8 #define MOBILE_MESSAGE_DATABASE_SERVICE_CID \ |
|
9 { 0x0d84b9c2, 0x8f76, 0x4ba4, \ |
|
10 { 0xa5, 0xcd, 0xdb, 0xfb, 0x01, 0xdf, 0xda, 0x99 } } |
|
11 #define MOBILE_MESSAGE_DATABASE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessagedatabaseservice;1" |
|
12 %} |
|
13 |
|
14 interface nsICursorContinueCallback; |
|
15 interface nsIDOMMozSmsFilter; |
|
16 interface nsIMobileMessageCallback; |
|
17 interface nsIMobileMessageCursorCallback; |
|
18 |
|
19 [scriptable, uuid(8439916f-abc1-4c67-aa45-8a276a0a7855)] |
|
20 interface nsIMobileMessageDatabaseService : nsISupports |
|
21 { |
|
22 [binaryname(GetMessageMoz)] |
|
23 void getMessage(in long messageId, |
|
24 in nsIMobileMessageCallback request); |
|
25 |
|
26 void deleteMessage([array, size_is(count)] in long messageIds, |
|
27 in uint32_t count, |
|
28 in nsIMobileMessageCallback request); |
|
29 |
|
30 nsICursorContinueCallback createMessageCursor(in nsIDOMMozSmsFilter filter, |
|
31 in boolean reverse, |
|
32 in nsIMobileMessageCursorCallback callback); |
|
33 |
|
34 void markMessageRead(in long messageId, |
|
35 in boolean value, |
|
36 in boolean sendReadReport, |
|
37 in nsIMobileMessageCallback request); |
|
38 |
|
39 nsICursorContinueCallback createThreadCursor(in nsIMobileMessageCursorCallback callback); |
|
40 }; |