messagingfw/msgtest/integration/sms/inc/T_SmsEnum.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1999-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 //
       
    15 
       
    16 #include <smsclnt.h>
       
    17 #include <smuthdr.h>
       
    18 #include "smstestbase.h"
       
    19 
       
    20 _LIT(KSmsEnumTestName, "Enumerate and Write to SIM");
       
    21 
       
    22 class CSmsEnumTest : public CSmsTestBase
       
    23 	{
       
    24 public:
       
    25 	static CSmsEnumTest* NewLC(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest);
       
    26 	~CSmsEnumTest();
       
    27 
       
    28 private:
       
    29 	CSmsEnumTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest);
       
    30 	void ConstructL();
       
    31 
       
    32 	void RunL();
       
    33 	void DoCancel();
       
    34 
       
    35 	void TestEnumerateL();
       
    36 	void TestCopyFromSimL();
       
    37 	void TestMoveFromSimL();
       
    38 	void TestDeleteFromSimL();
       
    39 
       
    40 	void TestCopyToSimL();
       
    41 	void TestDeleteRemoteEntryL();
       
    42 
       
    43 	void ShowMenuL();
       
    44 	void RunAutoL();
       
    45 
       
    46 	void DoRunEnumerateL();
       
    47 	void DoRunCopyToSimL();
       
    48 	void DoRunCopyMoveDeleteFromSimL();
       
    49 
       
    50 	void ShowMenuAfterEnumerateL();
       
    51 
       
    52 private:
       
    53 	enum TSchSmsTestState
       
    54 		{
       
    55 		EStateWaiting,
       
    56 		EStateEnumerating,
       
    57 		EStateCopyFromSim,
       
    58 		EStateMoveFromSim,
       
    59 		EStateDeleteFromSim,
       
    60 		EStateCopyToSim
       
    61 		} iState;
       
    62 	};