mobilemessaging/smsmtm/clientmtm/src/SMSCLNT.CPP
branchRCL_3
changeset 14 c6838af47512
parent 9 1d7827e39b52
equal deleted inserted replaced
13:a9c7e5670d17 14:c6838af47512
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   236 		{
   236 		{
   237 		if (err != KErrNotFound)
   237 		if (err != KErrNotFound)
   238 			{
   238 			{
   239 			User::Leave(err);
   239 			User::Leave(err);
   240 			}
   240 			}
   241 
   241 		TMsvEntry entry;
   242 		iServiceId = 0;
   242 		entry.iMtm = KUidMsgTypeSMS;
       
   243 	    entry.iType = KUidMsvServiceEntry;
       
   244 	    entry.SetReadOnly(EFalse);
       
   245 	    entry.SetVisible(EFalse);
       
   246 	    entry.iDate.UniversalTime();
       
   247 	    entry.iDetails.Set(_L("Default SMS Message"));
       
   248     
       
   249     	CMsvEntry* root = Session().GetEntryL(KMsvRootIndexEntryId);
       
   250 	    root->CreateL(entry);
       
   251 	   	iServiceId = entry.Id();
       
   252 	   	delete root;
   243 		}
   253 		}
   244 
   254 
   245 	//Initialise iRealAddressOpen and iRealAddressClose from the SMS resouce file
   255 	//Initialise iRealAddressOpen and iRealAddressClose from the SMS resouce file
   246 	RResourceFile resFile = TSmsUtilities::OpenResourceFileL(fileSession);
   256 	RResourceFile resFile = TSmsUtilities::OpenResourceFileL(fileSession);
   247 	CleanupClosePushL(resFile);
   257 	CleanupClosePushL(resFile);
  1537 
  1547 
  1538 
  1548 
  1539 
  1549 
  1540 /** 
  1550 /** 
  1541 Creates a new outgoing SMS message entry as a child of the current context.
  1551 Creates a new outgoing SMS message entry as a child of the current context.
  1542 
       
  1543 Used by CSendAs::CreateMessageL to create an outgoing SMS message.
  1552 Used by CSendAs::CreateMessageL to create an outgoing SMS message.
  1544 
  1553 
  1545 @param	
  1554 @param	
  1546 The entry with the required fields set.
  1555 The entry with the required fields set.
  1547 
  1556