gecko/dom/mobilemessage/interfaces/nsIRilMobileMessageDatabaseService.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

34 lines
1.4 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"
#include "nsIMobileMessageDatabaseService.idl"
interface nsIDOMMozSmsMessage;
[scriptable, function, uuid(9cd80750-6a08-11e2-ac93-bf895e53f40e)]
interface nsIRilMobileMessageDatabaseCallback : nsISupports
{
void notify(in nsresult aRv, in nsIDOMMozSmsMessage aSms);
};
[scriptable, uuid(89528354-6a08-11e2-8243-af4cf90404a9)]
interface nsIRilMobileMessageDatabaseService : nsIMobileMessageDatabaseService
{
long saveReceivedMessage(in DOMString aSender,
in DOMString aBody,
in DOMString aMessageClass,
in unsigned long long aDate,
[optional] in nsIRilMobileMessageDatabaseCallback aCallback);
long saveSendingMessage(in DOMString aReceiver,
in DOMString aBody,
in DOMString aDeliveryStatus,
in unsigned long long aDate,
[optional] in nsIRilMobileMessageDatabaseCallback aCallback);
void setMessageDelivery(in long aMessageId,
in DOMString aDelivery,
in DOMString aDeliveryStatus,
[optional] in nsIRilMobileMessageDatabaseCallback aCallback);
};