2011-11-21 02:59:46 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-17 23:42:38 +04:00
|
|
|
/* 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/. */
|
2011-11-21 02:59:46 +04:00
|
|
|
|
|
|
|
#include "mozilla/dom/ContentChild.h"
|
|
|
|
#include "SmsIPCService.h"
|
|
|
|
#include "nsXULAppAPI.h"
|
2013-03-01 12:38:47 +04:00
|
|
|
#include "mozilla/dom/mobilemessage/SmsChild.h"
|
|
|
|
#include "SmsMessage.h"
|
2013-04-10 16:18:41 +04:00
|
|
|
#include "nsJSUtils.h"
|
2014-06-25 07:57:16 +04:00
|
|
|
#include "mozilla/dom/MozMobileMessageManagerBinding.h"
|
2013-05-18 05:48:25 +04:00
|
|
|
#include "mozilla/dom/BindingUtils.h"
|
2013-10-24 12:15:06 +04:00
|
|
|
#include "mozilla/Preferences.h"
|
|
|
|
#include "nsString.h"
|
2014-09-27 03:21:57 +04:00
|
|
|
#include "mozilla/dom/ipc/BlobChild.h"
|
2014-12-25 23:18:38 +03:00
|
|
|
#include "mozilla/unused.h"
|
2011-11-21 02:59:46 +04:00
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
using namespace mozilla::dom;
|
|
|
|
using namespace mozilla::dom::mobilemessage;
|
2011-11-21 02:59:46 +04:00
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
namespace {
|
2011-11-21 02:59:46 +04:00
|
|
|
|
2013-10-24 12:15:06 +04:00
|
|
|
#define kPrefMmsDefaultServiceId "dom.mms.defaultServiceId"
|
|
|
|
#define kPrefSmsDefaultServiceId "dom.sms.defaultServiceId"
|
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
// TODO: Bug 767082 - WebSMS: sSmsChild leaks at shutdown
|
|
|
|
PSmsChild* gSmsChild;
|
2013-04-09 16:54:00 +04:00
|
|
|
|
2014-09-21 11:24:44 +04:00
|
|
|
// SmsIPCService is owned by nsLayoutModule.
|
|
|
|
SmsIPCService* sSingleton = nullptr;
|
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
PSmsChild*
|
|
|
|
GetSmsChild()
|
2012-11-07 01:29:30 +04:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread());
|
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
if (!gSmsChild) {
|
|
|
|
gSmsChild = ContentChild::GetSingleton()->SendPSmsConstructor();
|
2012-11-07 01:29:30 +04:00
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
NS_WARN_IF_FALSE(gSmsChild,
|
|
|
|
"Calling methods on SmsIPCService during shutdown!");
|
2012-11-07 01:29:30 +04:00
|
|
|
}
|
2013-04-09 20:36:04 +04:00
|
|
|
|
|
|
|
return gSmsChild;
|
2012-11-07 01:29:30 +04:00
|
|
|
}
|
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
nsresult
|
|
|
|
SendRequest(const IPCSmsRequest& aRequest,
|
|
|
|
nsIMobileMessageCallback* aRequestReply)
|
2013-04-09 06:21:35 +04:00
|
|
|
{
|
2013-04-09 20:36:04 +04:00
|
|
|
PSmsChild* smsChild = GetSmsChild();
|
|
|
|
NS_ENSURE_TRUE(smsChild, NS_ERROR_FAILURE);
|
2013-04-09 06:21:35 +04:00
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
SmsRequestChild* actor = new SmsRequestChild(aRequestReply);
|
|
|
|
smsChild->SendPSmsRequestConstructor(actor, aRequest);
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
2013-04-09 20:37:58 +04:00
|
|
|
SendCursorRequest(const IPCMobileMessageCursor& aRequest,
|
2013-04-09 20:36:04 +04:00
|
|
|
nsIMobileMessageCursorCallback* aRequestReply,
|
|
|
|
nsICursorContinueCallback** aResult)
|
|
|
|
{
|
|
|
|
PSmsChild* smsChild = GetSmsChild();
|
|
|
|
NS_ENSURE_TRUE(smsChild, NS_ERROR_FAILURE);
|
|
|
|
|
|
|
|
nsRefPtr<MobileMessageCursorChild> actor =
|
|
|
|
new MobileMessageCursorChild(aRequestReply);
|
|
|
|
|
|
|
|
// Add an extra ref for IPDL. Will be released in
|
|
|
|
// SmsChild::DeallocPMobileMessageCursor().
|
2014-12-25 23:18:38 +03:00
|
|
|
nsRefPtr<MobileMessageCursorChild> actorCopy(actor);
|
|
|
|
mozilla::unused << actorCopy.forget().take();
|
2013-04-09 20:36:04 +04:00
|
|
|
|
|
|
|
smsChild->SendPMobileMessageCursorConstructor(actor, aRequest);
|
|
|
|
|
|
|
|
actor.forget(aResult);
|
|
|
|
return NS_OK;
|
2011-11-21 02:59:46 +04:00
|
|
|
}
|
2013-10-24 12:15:06 +04:00
|
|
|
|
|
|
|
uint32_t
|
|
|
|
getDefaultServiceId(const char* aPrefKey)
|
|
|
|
{
|
2014-09-25 18:10:42 +04:00
|
|
|
static const char* kPrefRilNumRadioInterfaces = "ril.numRadioInterfaces";
|
2013-10-24 12:15:06 +04:00
|
|
|
int32_t id = mozilla::Preferences::GetInt(aPrefKey, 0);
|
|
|
|
int32_t numRil = mozilla::Preferences::GetInt(kPrefRilNumRadioInterfaces, 1);
|
|
|
|
|
|
|
|
if (id >= numRil || id < 0) {
|
|
|
|
id = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
} // anonymous namespace
|
|
|
|
|
2014-04-27 11:06:00 +04:00
|
|
|
NS_IMPL_ISUPPORTS(SmsIPCService,
|
|
|
|
nsISmsService,
|
|
|
|
nsIMmsService,
|
|
|
|
nsIMobileMessageDatabaseService,
|
|
|
|
nsIObserver)
|
2013-10-24 12:15:06 +04:00
|
|
|
|
2014-09-21 11:24:44 +04:00
|
|
|
/* static */ already_AddRefed<SmsIPCService>
|
|
|
|
SmsIPCService::GetSingleton()
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread());
|
|
|
|
|
|
|
|
if (!sSingleton) {
|
|
|
|
sSingleton = new SmsIPCService();
|
|
|
|
}
|
|
|
|
|
|
|
|
nsRefPtr<SmsIPCService> service = sSingleton;
|
|
|
|
return service.forget();
|
|
|
|
}
|
|
|
|
|
2013-10-24 12:15:06 +04:00
|
|
|
SmsIPCService::SmsIPCService()
|
|
|
|
{
|
2014-09-25 18:10:42 +04:00
|
|
|
static const char* kObservedPrefs[] = {
|
|
|
|
kPrefMmsDefaultServiceId,
|
|
|
|
kPrefSmsDefaultServiceId,
|
|
|
|
nullptr
|
|
|
|
};
|
2013-10-24 12:15:06 +04:00
|
|
|
Preferences::AddStrongObservers(this, kObservedPrefs);
|
|
|
|
mMmsDefaultServiceId = getDefaultServiceId(kPrefMmsDefaultServiceId);
|
|
|
|
mSmsDefaultServiceId = getDefaultServiceId(kPrefSmsDefaultServiceId);
|
|
|
|
}
|
|
|
|
|
2014-09-21 11:24:44 +04:00
|
|
|
SmsIPCService::~SmsIPCService()
|
|
|
|
{
|
|
|
|
sSingleton = nullptr;
|
|
|
|
}
|
|
|
|
|
2013-10-24 12:15:06 +04:00
|
|
|
/*
|
|
|
|
* Implementation of nsIObserver.
|
|
|
|
*/
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::Observe(nsISupports* aSubject,
|
|
|
|
const char* aTopic,
|
2014-01-04 19:02:17 +04:00
|
|
|
const char16_t* aData)
|
2013-10-24 12:15:06 +04:00
|
|
|
{
|
|
|
|
if (!strcmp(aTopic, NS_PREFBRANCH_PREFCHANGE_TOPIC_ID)) {
|
|
|
|
nsDependentString data(aData);
|
|
|
|
if (data.EqualsLiteral(kPrefMmsDefaultServiceId)) {
|
|
|
|
mMmsDefaultServiceId = getDefaultServiceId(kPrefMmsDefaultServiceId);
|
|
|
|
} else if (data.EqualsLiteral(kPrefSmsDefaultServiceId)) {
|
|
|
|
mSmsDefaultServiceId = getDefaultServiceId(kPrefSmsDefaultServiceId);
|
|
|
|
}
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
MOZ_ASSERT(false, "SmsIPCService got unexpected topic!");
|
|
|
|
return NS_ERROR_UNEXPECTED;
|
|
|
|
}
|
2013-04-09 20:36:04 +04:00
|
|
|
|
2012-01-13 17:25:47 +04:00
|
|
|
/*
|
|
|
|
* Implementation of nsISmsService.
|
|
|
|
*/
|
2013-10-24 12:15:06 +04:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::GetSmsDefaultServiceId(uint32_t* aServiceId)
|
|
|
|
{
|
|
|
|
*aServiceId = mSmsDefaultServiceId;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2011-11-25 13:48:51 +04:00
|
|
|
NS_IMETHODIMP
|
2013-08-09 17:25:53 +04:00
|
|
|
SmsIPCService::GetSegmentInfoForText(const nsAString& aText,
|
|
|
|
nsIMobileMessageCallback* aRequest)
|
2011-11-25 13:48:51 +04:00
|
|
|
{
|
2013-08-09 17:25:53 +04:00
|
|
|
return SendRequest(GetSegmentInfoForTextRequest(nsString(aText)),
|
|
|
|
aRequest);
|
2011-11-25 13:48:51 +04:00
|
|
|
}
|
|
|
|
|
2013-09-16 06:12:38 +04:00
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::GetSmscAddress(uint32_t aServiceId,
|
|
|
|
nsIMobileMessageCallback* aRequest)
|
|
|
|
{
|
|
|
|
return SendRequest(GetSmscAddressRequest(aServiceId), aRequest);
|
|
|
|
}
|
|
|
|
|
2011-11-21 03:00:46 +04:00
|
|
|
NS_IMETHODIMP
|
2013-11-02 14:17:16 +04:00
|
|
|
SmsIPCService::Send(uint32_t aServiceId,
|
|
|
|
const nsAString& aNumber,
|
2012-11-07 01:29:30 +04:00
|
|
|
const nsAString& aMessage,
|
2014-03-20 06:45:55 +04:00
|
|
|
bool aSilent,
|
2013-03-09 11:22:02 +04:00
|
|
|
nsIMobileMessageCallback* aRequest)
|
2011-11-21 03:00:46 +04:00
|
|
|
{
|
2013-11-02 14:17:16 +04:00
|
|
|
return SendRequest(SendMessageRequest(SendSmsMessageRequest(aServiceId,
|
|
|
|
nsString(aNumber),
|
2013-07-30 02:50:21 +04:00
|
|
|
nsString(aMessage),
|
|
|
|
aSilent)),
|
2013-04-10 16:18:43 +04:00
|
|
|
aRequest);
|
2011-11-21 03:00:46 +04:00
|
|
|
}
|
|
|
|
|
2013-07-30 02:50:21 +04:00
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::AddSilentNumber(const nsAString& aNumber)
|
|
|
|
{
|
|
|
|
PSmsChild* smsChild = GetSmsChild();
|
|
|
|
NS_ENSURE_TRUE(smsChild, NS_ERROR_FAILURE);
|
|
|
|
|
|
|
|
smsChild->SendAddSilentNumber(nsString(aNumber));
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::RemoveSilentNumber(const nsAString& aNumber)
|
|
|
|
{
|
|
|
|
PSmsChild* smsChild = GetSmsChild();
|
|
|
|
NS_ENSURE_TRUE(smsChild, NS_ERROR_FAILURE);
|
|
|
|
|
|
|
|
smsChild->SendRemoveSilentNumber(nsString(aNumber));
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2012-01-13 17:25:47 +04:00
|
|
|
/*
|
2013-02-05 15:10:39 +04:00
|
|
|
* Implementation of nsIMobileMessageDatabaseService.
|
2012-01-13 17:25:47 +04:00
|
|
|
*/
|
2011-12-20 19:58:58 +04:00
|
|
|
NS_IMETHODIMP
|
2012-11-07 01:29:30 +04:00
|
|
|
SmsIPCService::GetMessageMoz(int32_t aMessageId,
|
2013-03-09 11:22:02 +04:00
|
|
|
nsIMobileMessageCallback* aRequest)
|
2011-12-20 19:58:58 +04:00
|
|
|
{
|
2013-04-09 20:36:04 +04:00
|
|
|
return SendRequest(GetMessageRequest(aMessageId), aRequest);
|
2011-12-20 19:58:58 +04:00
|
|
|
}
|
|
|
|
|
2012-01-17 22:41:22 +04:00
|
|
|
NS_IMETHODIMP
|
2013-04-29 13:50:55 +04:00
|
|
|
SmsIPCService::DeleteMessage(int32_t *aMessageIds, uint32_t aSize,
|
2013-03-09 11:22:02 +04:00
|
|
|
nsIMobileMessageCallback* aRequest)
|
2012-01-17 22:41:22 +04:00
|
|
|
{
|
2013-04-29 13:50:55 +04:00
|
|
|
DeleteMessageRequest data;
|
|
|
|
data.messageIds().AppendElements(aMessageIds, aSize);
|
|
|
|
return SendRequest(data, aRequest);
|
2012-01-17 22:41:22 +04:00
|
|
|
}
|
|
|
|
|
2012-01-17 22:42:05 +04:00
|
|
|
NS_IMETHODIMP
|
2014-08-28 07:00:03 +04:00
|
|
|
SmsIPCService::CreateMessageCursor(bool aHasStartDate,
|
|
|
|
uint64_t aStartDate,
|
|
|
|
bool aHasEndDate,
|
|
|
|
uint64_t aEndDate,
|
|
|
|
const char16_t** aNumbers,
|
|
|
|
uint32_t aNumbersCount,
|
|
|
|
const nsAString& aDelivery,
|
|
|
|
bool aHasRead,
|
|
|
|
bool aRead,
|
|
|
|
uint64_t aThreadId,
|
2013-04-09 20:36:04 +04:00
|
|
|
bool aReverse,
|
|
|
|
nsIMobileMessageCursorCallback* aCursorCallback,
|
|
|
|
nsICursorContinueCallback** aResult)
|
2012-01-17 22:42:05 +04:00
|
|
|
{
|
2014-08-28 07:00:03 +04:00
|
|
|
SmsFilterData data;
|
|
|
|
|
|
|
|
data.hasStartDate() = aHasStartDate;
|
|
|
|
data.startDate() = aStartDate;
|
|
|
|
data.hasEndDate() = aHasEndDate;
|
2014-09-01 03:00:00 +04:00
|
|
|
data.endDate() = aEndDate;
|
2014-08-28 07:00:03 +04:00
|
|
|
|
|
|
|
if (aNumbersCount && aNumbers) {
|
|
|
|
nsTArray<nsString>& numbers = data.numbers();
|
|
|
|
uint32_t index;
|
|
|
|
|
|
|
|
for (index = 0; index < aNumbersCount; index++) {
|
|
|
|
numbers.AppendElement(aNumbers[index]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
data.delivery() = aDelivery;
|
|
|
|
data.hasRead() = aHasRead;
|
|
|
|
data.read() = aRead;
|
|
|
|
data.threadId() = aThreadId;
|
2012-01-17 22:42:05 +04:00
|
|
|
|
2013-04-09 20:36:04 +04:00
|
|
|
return SendCursorRequest(CreateMessageCursorRequest(data, aReverse),
|
|
|
|
aCursorCallback, aResult);
|
2012-01-17 22:43:08 +04:00
|
|
|
}
|
|
|
|
|
2012-05-17 23:42:38 +04:00
|
|
|
NS_IMETHODIMP
|
2012-11-07 01:29:30 +04:00
|
|
|
SmsIPCService::MarkMessageRead(int32_t aMessageId,
|
|
|
|
bool aValue,
|
2013-11-04 07:36:00 +04:00
|
|
|
bool aSendReadReport,
|
2013-03-09 11:22:02 +04:00
|
|
|
nsIMobileMessageCallback* aRequest)
|
2012-05-17 23:42:38 +04:00
|
|
|
{
|
2013-11-04 07:36:00 +04:00
|
|
|
return SendRequest(MarkMessageReadRequest(aMessageId, aValue, aSendReadReport), aRequest);
|
2012-05-17 23:42:38 +04:00
|
|
|
}
|
|
|
|
|
2012-11-14 23:49:56 +04:00
|
|
|
NS_IMETHODIMP
|
2013-04-09 20:37:58 +04:00
|
|
|
SmsIPCService::CreateThreadCursor(nsIMobileMessageCursorCallback* aCursorCallback,
|
|
|
|
nsICursorContinueCallback** aResult)
|
2012-11-14 23:49:56 +04:00
|
|
|
{
|
2013-04-09 20:37:58 +04:00
|
|
|
return SendCursorRequest(CreateThreadCursorRequest(), aCursorCallback,
|
|
|
|
aResult);
|
2012-11-14 23:49:56 +04:00
|
|
|
}
|
2013-04-10 16:18:32 +04:00
|
|
|
|
2013-04-10 16:18:41 +04:00
|
|
|
bool
|
2013-11-02 14:17:16 +04:00
|
|
|
GetSendMmsMessageRequestFromParams(uint32_t aServiceId,
|
|
|
|
const JS::Value& aParam,
|
2013-04-10 16:18:41 +04:00
|
|
|
SendMmsMessageRequest& request) {
|
|
|
|
if (aParam.isUndefined() || aParam.isNull() || !aParam.isObject()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
mozilla::AutoJSContext cx;
|
2013-05-18 05:48:25 +04:00
|
|
|
JS::Rooted<JS::Value> param(cx, aParam);
|
|
|
|
RootedDictionary<MmsParameters> params(cx);
|
|
|
|
if (!params.Init(cx, param)) {
|
2013-04-10 16:18:41 +04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-05-18 05:48:25 +04:00
|
|
|
// SendMobileMessageRequest.receivers
|
|
|
|
if (!params.mReceivers.WasPassed()) {
|
|
|
|
return false;
|
2013-04-10 16:18:41 +04:00
|
|
|
}
|
2013-05-18 05:48:25 +04:00
|
|
|
request.receivers().AppendElements(params.mReceivers.Value());
|
2013-04-10 16:18:41 +04:00
|
|
|
|
|
|
|
// SendMobileMessageRequest.attachments
|
|
|
|
mozilla::dom::ContentChild* cc = mozilla::dom::ContentChild::GetSingleton();
|
|
|
|
|
2013-05-18 05:48:25 +04:00
|
|
|
if (!params.mAttachments.WasPassed()) {
|
2013-04-10 16:18:41 +04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-05-18 05:48:25 +04:00
|
|
|
for (uint32_t i = 0; i < params.mAttachments.Value().Length(); i++) {
|
2013-12-01 06:21:35 +04:00
|
|
|
mozilla::dom::MmsAttachment& attachment = params.mAttachments.Value()[i];
|
2013-04-10 16:18:41 +04:00
|
|
|
MmsAttachmentData mmsAttachment;
|
2013-05-18 05:48:25 +04:00
|
|
|
mmsAttachment.id().Assign(attachment.mId);
|
|
|
|
mmsAttachment.location().Assign(attachment.mLocation);
|
|
|
|
mmsAttachment.contentChild() = cc->GetOrCreateActorForBlob(attachment.mContent);
|
2013-04-10 16:18:41 +04:00
|
|
|
if (!mmsAttachment.contentChild()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
request.attachments().AppendElement(mmsAttachment);
|
|
|
|
}
|
|
|
|
|
2013-05-18 05:48:25 +04:00
|
|
|
request.smil() = params.mSmil;
|
|
|
|
request.subject() = params.mSubject;
|
2013-04-10 16:18:41 +04:00
|
|
|
|
2013-11-02 14:17:16 +04:00
|
|
|
// Set service ID.
|
|
|
|
request.serviceId() = aServiceId;
|
|
|
|
|
2013-04-10 16:18:41 +04:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-10-24 12:15:06 +04:00
|
|
|
/*
|
|
|
|
* Implementation of nsIMmsService.
|
|
|
|
*/
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::GetMmsDefaultServiceId(uint32_t* aServiceId)
|
|
|
|
{
|
|
|
|
*aServiceId = mMmsDefaultServiceId;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2013-04-10 16:18:32 +04:00
|
|
|
NS_IMETHODIMP
|
2013-11-02 14:17:16 +04:00
|
|
|
SmsIPCService::Send(uint32_t aServiceId,
|
2014-01-09 21:39:36 +04:00
|
|
|
JS::Handle<JS::Value> aParameters,
|
2013-04-10 16:18:32 +04:00
|
|
|
nsIMobileMessageCallback *aRequest)
|
|
|
|
{
|
2013-04-10 16:18:41 +04:00
|
|
|
SendMmsMessageRequest req;
|
2013-11-02 14:17:16 +04:00
|
|
|
if (!GetSendMmsMessageRequestFromParams(aServiceId, aParameters, req)) {
|
2013-07-11 07:23:49 +04:00
|
|
|
return NS_ERROR_INVALID_ARG;
|
2013-04-10 16:18:41 +04:00
|
|
|
}
|
|
|
|
return SendRequest(SendMessageRequest(req), aRequest);
|
2013-04-10 16:18:32 +04:00
|
|
|
}
|
|
|
|
|
2013-04-10 16:18:43 +04:00
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::Retrieve(int32_t aId, nsIMobileMessageCallback *aRequest)
|
|
|
|
{
|
|
|
|
return SendRequest(RetrieveMessageRequest(aId), aRequest);
|
|
|
|
}
|
2013-11-04 07:36:00 +04:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
SmsIPCService::SendReadReport(const nsAString & messageID,
|
|
|
|
const nsAString & toAddress,
|
|
|
|
const nsAString & iccId)
|
|
|
|
{
|
|
|
|
NS_ERROR("We should not be here!");
|
|
|
|
return NS_OK;
|
|
|
|
}
|