dom/mobilemessage/interfaces/nsIMobileMessageDatabaseService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/mobilemessage/interfaces/nsIMobileMessageDatabaseService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +%{C++
    1.11 +#define MOBILE_MESSAGE_DATABASE_SERVICE_CID \
    1.12 +{ 0x0d84b9c2, 0x8f76, 0x4ba4,    \
    1.13 +{ 0xa5, 0xcd, 0xdb, 0xfb, 0x01, 0xdf, 0xda, 0x99 } }
    1.14 +#define MOBILE_MESSAGE_DATABASE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessagedatabaseservice;1"
    1.15 +%}
    1.16 +
    1.17 +interface nsICursorContinueCallback;
    1.18 +interface nsIDOMMozSmsFilter;
    1.19 +interface nsIMobileMessageCallback;
    1.20 +interface nsIMobileMessageCursorCallback;
    1.21 +
    1.22 +[scriptable, uuid(8439916f-abc1-4c67-aa45-8a276a0a7855)]
    1.23 +interface nsIMobileMessageDatabaseService : nsISupports
    1.24 +{
    1.25 +  [binaryname(GetMessageMoz)]
    1.26 +  void getMessage(in long messageId,
    1.27 +                  in nsIMobileMessageCallback request);
    1.28 +
    1.29 +  void deleteMessage([array, size_is(count)] in long messageIds,
    1.30 +                     in uint32_t count,
    1.31 +                     in nsIMobileMessageCallback request);
    1.32 +
    1.33 +  nsICursorContinueCallback createMessageCursor(in nsIDOMMozSmsFilter filter,
    1.34 +                                                in boolean reverse,
    1.35 +                                                in nsIMobileMessageCursorCallback callback);
    1.36 +
    1.37 +  void markMessageRead(in long messageId,
    1.38 +                       in boolean value,
    1.39 +                       in boolean sendReadReport,
    1.40 +                       in nsIMobileMessageCallback request);
    1.41 +
    1.42 +  nsICursorContinueCallback createThreadCursor(in nsIMobileMessageCursorCallback callback);
    1.43 +};

mercurial