michael@0: /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko; michael@0: michael@0: class SmsManager michael@0: { michael@0: static private ISmsManager sInstance = null; michael@0: michael@0: static public ISmsManager getInstance() { michael@0: if (AppConstants.MOZ_WEBSMS_BACKEND) { michael@0: if (sInstance == null) { michael@0: sInstance = new GeckoSmsManager(); michael@0: } michael@0: } michael@0: return sInstance; michael@0: } michael@0: } michael@0: michael@0: interface ISmsManager michael@0: { michael@0: public void start(); michael@0: public void stop(); michael@0: public void shutdown(); michael@0: michael@0: public void send(String aNumber, String aMessage, int aRequestId); michael@0: public void getMessage(int aMessageId, int aRequestId); michael@0: public void deleteMessage(int aMessageId, int aRequestId); michael@0: public void createMessageList(long aStartDate, long aEndDate, String[] aNumbers, int aNumbersCount, int aDeliveryState, boolean aReverse, int aRequestId); michael@0: public void getNextMessageInList(int aListId, int aRequestId); michael@0: public void clearMessageList(int aListId); michael@0: }