Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 package org.mozilla.gecko;
8 class SmsManager
9 {
10 static private ISmsManager sInstance = null;
12 static public ISmsManager getInstance() {
13 if (AppConstants.MOZ_WEBSMS_BACKEND) {
14 if (sInstance == null) {
15 sInstance = new GeckoSmsManager();
16 }
17 }
18 return sInstance;
19 }
20 }
22 interface ISmsManager
23 {
24 public void start();
25 public void stop();
26 public void shutdown();
28 public void send(String aNumber, String aMessage, int aRequestId);
29 public void getMessage(int aMessageId, int aRequestId);
30 public void deleteMessage(int aMessageId, int aRequestId);
31 public void createMessageList(long aStartDate, long aEndDate, String[] aNumbers, int aNumbersCount, int aDeliveryState, boolean aReverse, int aRequestId);
32 public void getNextMessageInList(int aListId, int aRequestId);
33 public void clearMessageList(int aListId);
34 }