telephonyserverplugins/simtsy/test/Te_SimSms/Te_SimSmsTestStepBase.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2005-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 #ifndef __TE_SIMSMS_TESTSTEP_BASE__
       
    17 #define __TE_SIMSMS_TESTSTEP_BASE__
       
    18 
       
    19 #include <test/testexecutestepbase.h>
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32test.h>
       
    23 #include <e32keys.h>
       
    24 #include <c32comm.h>
       
    25 #include <f32file.h>
       
    26 #include <etel.h>
       
    27 #include <etelmm.h>
       
    28 #include <mmretrieve.h>
       
    29 #include <exterror.h> 
       
    30 #include "SimTsy.h"
       
    31 
       
    32 #include "Te_SimSmsConstants.h"
       
    33 
       
    34 typedef TBuf8<200> TSmsPdu;
       
    35 typedef TBuf<RMobilePhone::KMaxMobileTelNumberSize> TTelNumberBuf;
       
    36 
       
    37 _LIT(KSimtsyName,"SIM");
       
    38 
       
    39 class CSimSmsTestStepBase : public CTestStep
       
    40 	{
       
    41 public:
       
    42  	virtual TVerdict doTestStepPreambleL();
       
    43 	virtual TVerdict doTestStepPostambleL();
       
    44 
       
    45 protected:
       
    46 	void WaitWithTimeout(TRequestStatus& aStatus, TInt aNumberOfMicroSeconds) ;
       
    47 	TVerdict  SendSms() ;
       
    48 	void PrintMessageStoreCaps(TUint32 aCaps) ;
       
    49 
       
    50 protected:
       
    51 	RTelServer iTelServer;
       
    52 	RMobilePhone iPhone;
       
    53 	RMobileSmsMessaging iSms;
       
    54 	RMobileSmsMessaging::TMobileSmsCapsV1 iSmsCaps ;
       
    55 	TTelNumberBuf iSCANumber;
       
    56 	TTelNumberBuf iTelNumber;
       
    57 
       
    58 private:
       
    59 	CActiveScheduler* iTestScheduler;
       
    60 	};
       
    61 
       
    62 #endif // __TE_SIMSMS_TESTSTEP_BASE__