gecko/dom/sms/interfaces/nsISmsRequest.idl
2012-11-13 14:44:18 -08:00

41 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"
interface nsIDOMMozSmsMessage;
[scriptable, builtinclass, uuid(97067327-64b9-4e26-848b-59e443c55db9)]
interface nsISmsRequest : nsISupports
{
/**
* All SMS related errors that could apply to SmsRequest objects.
* Make sure to keep this list in sync with the list in:
* embedding/android/GeckoSmsManager.java
*/
const unsigned short SUCCESS_NO_ERROR = 0;
const unsigned short NO_SIGNAL_ERROR = 1;
const unsigned short NOT_FOUND_ERROR = 2;
const unsigned short UNKNOWN_ERROR = 3;
const unsigned short INTERNAL_ERROR = 4;
void notifyMessageSent(in nsIDOMMozSmsMessage message);
void notifySendMessageFailed(in long error);
void notifyMessageGot(in nsIDOMMozSmsMessage message);
void notifyGetMessageFailed(in long error);
void notifyMessageDeleted(in boolean deleted);
void notifyDeleteMessageFailed(in long error);
void notifyMessageListCreated(in long listId,
in nsIDOMMozSmsMessage message);
void notifyReadMessageListFailed(in long error);
void notifyNextMessageInListGot(in nsIDOMMozSmsMessage message);
void notifyNoMessageInList();
void notifyMessageMarkedRead(in boolean read);
void notifyMarkMessageReadFailed(in long error);
};