messagingfw/msgtestfw/TestActions/Sms/src/CMtfTestActionSmsSettingsSaveExternal.cpp
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // __ACTION_INFO_BEGIN__ 
       
    15 // [Action Name]
       
    16 // SmsSettingsSaveExternal
       
    17 // [Action Parameters]
       
    18 // CMsvSession&  Session    <input>: Reference to the session.
       
    19 // TMsvId        ServiceId  <input>: Value of the SMS service id.
       
    20 // [Action Description]
       
    21 // Stores the SMS settings to the current context, and to the external file store.
       
    22 // [APIs Used]
       
    23 // CMsvSession::GetEntryL
       
    24 // CMsvStore::EditStoreL
       
    25 // CSmsSettings::RestoreL
       
    26 // CSmsSettings::SaveExternalL
       
    27 // __ACTION_INFO_END__
       
    28 // 
       
    29 //
       
    30 
       
    31 /**
       
    32  @file
       
    33 */
       
    34 
       
    35 
       
    36 #include <smutset.h>
       
    37 #include <msvapi.h>
       
    38 
       
    39 #include "CMtfTestActionSmsSettingsSaveExternal.h"
       
    40 #include "CMtfTestCase.h"
       
    41 #include "CMtfTestActionParameters.h"
       
    42 //#include "MtfTestScripts.h"
       
    43 
       
    44 
       
    45 CMtfTestAction* CMtfTestActionSmsSettingsSaveExternal::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
       
    46 	{
       
    47 	CMtfTestActionSmsSettingsSaveExternal* self = new (ELeave) CMtfTestActionSmsSettingsSaveExternal(aTestCase);
       
    48 	CleanupStack::PushL(self);
       
    49 	self->ConstructL(aActionParameters);
       
    50 	CleanupStack::Pop();
       
    51 	return self;
       
    52 	}
       
    53 	
       
    54 
       
    55 CMtfTestActionSmsSettingsSaveExternal::CMtfTestActionSmsSettingsSaveExternal(CMtfTestCase& aTestCase)
       
    56 	: CMtfSynchronousTestAction(aTestCase)
       
    57 	{
       
    58 	}
       
    59 
       
    60 
       
    61 CMtfTestActionSmsSettingsSaveExternal::~CMtfTestActionSmsSettingsSaveExternal()
       
    62 	{
       
    63 	}
       
    64 
       
    65 void CMtfTestActionSmsSettingsSaveExternal::ExecuteActionL()
       
    66 	{
       
    67 	
       
    68 	TestCase().INFO_PRINTF1(_L("This API is removed from Messaging API V2. Test action does nothing."));
       
    69 	
       
    70 
       
    71 	TestCase().ActionCompletedL(*this);
       
    72 	}
       
    73 
       
    74