--- a/mobilemessaging/smsmtm/clientmtm/src/SMSCLNT.CPP Mon Mar 15 12:40:06 2010 +0200
+++ b/mobilemessaging/smsmtm/clientmtm/src/SMSCLNT.CPP Wed Mar 31 21:25:02 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -238,8 +238,18 @@
{
User::Leave(err);
}
-
- iServiceId = 0;
+ TMsvEntry entry;
+ entry.iMtm = KUidMsgTypeSMS;
+ entry.iType = KUidMsvServiceEntry;
+ entry.SetReadOnly(EFalse);
+ entry.SetVisible(EFalse);
+ entry.iDate.UniversalTime();
+ entry.iDetails.Set(_L("Default SMS Message"));
+
+ CMsvEntry* root = Session().GetEntryL(KMsvRootIndexEntryId);
+ root->CreateL(entry);
+ iServiceId = entry.Id();
+ delete root;
}
//Initialise iRealAddressOpen and iRealAddressClose from the SMS resouce file
@@ -1539,7 +1549,6 @@
/**
Creates a new outgoing SMS message entry as a child of the current context.
-
Used by CSendAs::CreateMessageL to create an outgoing SMS message.
@param