mobilemessaging/smsmtm/test/inc/t_smsbiofication.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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 #include <smsuaddr.h>
       
    20 
       
    21 _LIT(KSmsBioficationTestName, "Enumerate and Write BIO messages to SIM or phone");
       
    22 
       
    23 class CSmsBioficationTest : public CSmsTestBase
       
    24 	{
       
    25 public:
       
    26 	static CSmsBioficationTest* NewLC(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest);
       
    27 	~CSmsBioficationTest();
       
    28 
       
    29 private:
       
    30 	CSmsBioficationTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest);
       
    31 	void ConstructL();
       
    32 
       
    33 	void RunL();
       
    34 	void DoCancel();
       
    35 //  Tests
       
    36 	void TestSetupL();
       
    37 	void TestEnumerateL();
       
    38 	void TestCopyToPhoneStoreL();
       
    39 	void TestCopyFromPhoneStoreL();
       
    40 	void TestMoveFromPhoneStoreL();
       
    41 	void TestDeleteFromPhoneStoreL();
       
    42 	void TestSendL();
       
    43 	void TestDeleteEnumerationFolderL();
       
    44 	void TestCopyToPhoneStoreWithClass2FolderL();
       
    45 	void TestMoveToPhoneStoreWithClass2FolderL();
       
    46 	
       
    47 	void RunAutoL();
       
    48 	void ShowMenuL();
       
    49 
       
    50 	void RunEnumerateL();
       
    51 	void RunCopyToPhoneStoreL();
       
    52 	void RunCopyMoveDeleteFromPhoneStoreL();
       
    53 
       
    54 	void DeleteEntriesFromTestFolderL();
       
    55 	void ChangeMtmUidsL(CMsvEntrySelection& aSelection);
       
    56 	TBool CompareSelectionsL(const CMsvEntrySelection& aSelection1,const CMsvEntrySelection& aSelection2);
       
    57 	TBool CompareEntriesL(TMsvId aId1, TMsvId aId2);
       
    58 
       
    59 	void SetClass2FolderL(TMsvId aFolder);
       
    60 private:
       
    61 	enum TSchSmsTestState
       
    62 		{
       
    63 		EStateIdle,
       
    64 		EStateSettingUp,
       
    65 		EStateEnumerating,
       
    66 		EStateCopyingToPhoneStore,
       
    67 		EStateCopyingFromPhoneStore,
       
    68 		EStateMovingFromPhoneStore,
       
    69 		EStateDeletingFromPhoneStore,
       
    70 		EStateDeletingEnumerationFolder,
       
    71 		EStateSending,
       
    72 		} iState;
       
    73 	TMsvId iEnumerationFolderId;
       
    74 	TMsvId iTestFolderId;
       
    75 	CMsvEntrySelection* iTestSelection;
       
    76 	RSocketServ iSocketServ;
       
    77 	RSocket iSocket;
       
    78 	};