dom/mobilemessage/interfaces/nsIMobileMessageDatabaseService.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     5 #include "nsISupports.idl"
     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 %}
    14 interface nsICursorContinueCallback;
    15 interface nsIDOMMozSmsFilter;
    16 interface nsIMobileMessageCallback;
    17 interface nsIMobileMessageCursorCallback;
    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);
    26   void deleteMessage([array, size_is(count)] in long messageIds,
    27                      in uint32_t count,
    28                      in nsIMobileMessageCallback request);
    30   nsICursorContinueCallback createMessageCursor(in nsIDOMMozSmsFilter filter,
    31                                                 in boolean reverse,
    32                                                 in nsIMobileMessageCursorCallback callback);
    34   void markMessageRead(in long messageId,
    35                        in boolean value,
    36                        in boolean sendReadReport,
    37                        in nsIMobileMessageCallback request);
    39   nsICursorContinueCallback createThreadCursor(in nsIMobileMessageCursorCallback callback);
    40 };

mercurial