gecko/dom/mobilemessage/interfaces/nsIMobileMessageDatabaseService.idl
Gene Lian 0725c5f798 Bug 831683 - B2G SMS & B2G MMS: make SMS database more generic for MMS (part 2, create dom/mobilemessage to put DB codes). r=vicamo
--HG--
rename : dom/sms/interfaces/nsISmsDatabaseService.idl => dom/mobilemessage/interfaces/nsIMobileMessageDatabaseService.idl
rename : dom/sms/interfaces/nsIRilSmsDatabaseService.idl => dom/mobilemessage/interfaces/nsIRilMobileMessageDatabaseService.idl
rename : dom/sms/src/android/SmsDatabaseService.cpp => dom/mobilemessage/src/android/MobileMessageDatabaseService.cpp
rename : dom/sms/src/android/SmsDatabaseService.h => dom/mobilemessage/src/android/MobileMessageDatabaseService.h
rename : dom/sms/src/fallback/SmsDatabaseService.cpp => dom/mobilemessage/src/fallback/MobileMessageDatabaseService.cpp
rename : dom/sms/src/fallback/SmsDatabaseService.h => dom/mobilemessage/src/fallback/MobileMessageDatabaseService.h
rename : dom/sms/src/ril/SmsDatabaseService.js => dom/mobilemessage/src/ril/MobileMessageDatabaseService.js
rename : dom/sms/src/ril/SmsDatabaseService.manifest => dom/mobilemessage/src/ril/MobileMessageDatabaseService.manifest
2013-02-05 19:39:44 +08:00

30 lines
1.1 KiB
Plaintext

/* 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/. */
#include "nsISupports.idl"
%{C++
#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"
%}
interface nsIDOMMozSmsFilter;
interface nsISmsRequest;
[scriptable, uuid(ce9232ca-6a08-11e2-b971-c795004622e7)]
interface nsIMobileMessageDatabaseService : nsISupports
{
[binaryname(GetMessageMoz)]
void getMessage(in long messageId, in nsISmsRequest request);
void deleteMessage(in long messageId, in nsISmsRequest request);
void createMessageList(in nsIDOMMozSmsFilter filter, in boolean reverse, in nsISmsRequest request);
void getNextMessageInList(in long listId, in nsISmsRequest request);
void clearMessageList(in long listId);
void markMessageRead(in long messageId, in boolean value, in nsISmsRequest request);
void getThreadList(in nsISmsRequest request);
};