Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | #include "nsIDOMSmsSegmentInfo.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, uuid(41db87b0-b0a1-11e3-a04f-cf487d837ee3)] |
michael@0 | 9 | interface nsIMobileMessageCallback : nsISupports |
michael@0 | 10 | { |
michael@0 | 11 | /** |
michael@0 | 12 | * All SMS related errors. |
michael@0 | 13 | * Make sure to keep this list in sync with the list in: |
michael@0 | 14 | * embedding/android/GeckoSmsManager.java |
michael@0 | 15 | */ |
michael@0 | 16 | const unsigned short SUCCESS_NO_ERROR = 0; |
michael@0 | 17 | const unsigned short NO_SIGNAL_ERROR = 1; |
michael@0 | 18 | const unsigned short NOT_FOUND_ERROR = 2; |
michael@0 | 19 | const unsigned short UNKNOWN_ERROR = 3; |
michael@0 | 20 | const unsigned short INTERNAL_ERROR = 4; |
michael@0 | 21 | const unsigned short NO_SIM_CARD_ERROR = 5; |
michael@0 | 22 | const unsigned short RADIO_DISABLED_ERROR = 6; |
michael@0 | 23 | const unsigned short INVALID_ADDRESS_ERROR = 7; |
michael@0 | 24 | const unsigned short FDN_CHECK_ERROR = 8; |
michael@0 | 25 | const unsigned short NON_ACTIVE_SIM_CARD_ERROR = 9; |
michael@0 | 26 | const unsigned short STORAGE_FULL_ERROR = 10; |
michael@0 | 27 | const unsigned short SIM_NOT_MATCHED_ERROR = 11; |
michael@0 | 28 | |
michael@0 | 29 | /** |
michael@0 | 30 | * |message| can be nsIDOMMoz{Mms,Sms}Message. |
michael@0 | 31 | */ |
michael@0 | 32 | void notifyMessageSent(in nsISupports message); |
michael@0 | 33 | void notifySendMessageFailed(in long error); |
michael@0 | 34 | |
michael@0 | 35 | /** |
michael@0 | 36 | * |message| can be nsIDOMMoz{Mms,Sms}Message. |
michael@0 | 37 | */ |
michael@0 | 38 | void notifyMessageGot(in nsISupports message); |
michael@0 | 39 | void notifyGetMessageFailed(in long error); |
michael@0 | 40 | |
michael@0 | 41 | void notifyMessageDeleted([array, size_is(count)] in boolean deleted, |
michael@0 | 42 | in uint32_t count); |
michael@0 | 43 | void notifyDeleteMessageFailed(in long error); |
michael@0 | 44 | |
michael@0 | 45 | void notifyMessageMarkedRead(in boolean read); |
michael@0 | 46 | void notifyMarkMessageReadFailed(in long error); |
michael@0 | 47 | |
michael@0 | 48 | void notifySegmentInfoForTextGot(in nsIDOMMozSmsSegmentInfo info); |
michael@0 | 49 | void notifyGetSegmentInfoForTextFailed(in long error); |
michael@0 | 50 | |
michael@0 | 51 | /** |
michael@0 | 52 | * SMSC Address get/set result |
michael@0 | 53 | */ |
michael@0 | 54 | void notifyGetSmscAddress(in DOMString aSmscAddress); |
michael@0 | 55 | void notifyGetSmscAddressFailed(in long error); |
michael@0 | 56 | }; |