telephonyutils/etel3rdpartyapi/Test/te_etelIsv/TE_EtelIsvLineInfo.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 //
       
    15 
       
    16 
       
    17 #ifndef __TE_ETELISVLINEINFO_H_
       
    18 #define __TE_ETELISVLINEINFO_H_
       
    19 
       
    20 class CTestGetLineStatus : public CEtelIsvTestStep	//tests GetLineInfo()
       
    21 	{
       
    22 public:
       
    23 	CTestGetLineStatus(TInt& aCallCount) ;
       
    24 	~CTestGetLineStatus(){} ;
       
    25 	virtual enum TVerdict doTestStepL();
       
    26 private:
       
    27 	TInt& iCallCount;
       
    28 	TPckgBuf<CTelephony::TCallStatusV1> iStatusV1Buff;
       
    29 	};
       
    30 	
       
    31 class CTestGetCallInfo : public CEtelIsvTestStep	//tests GetCallInfo()
       
    32 	{
       
    33 public:
       
    34 	CTestGetCallInfo() ;
       
    35 	~CTestGetCallInfo(){} ;
       
    36 	virtual enum TVerdict doTestStepL();
       
    37 	void TestResults(CTelephony::TCallInfoV1& aActualCallInfo, CTelephony::TCallInfoV1& aExpCallInfo, CTelephony::TRemotePartyInfoV1& aActualRemotePartyInfo,  CTelephony::TRemotePartyInfoV1& aExpRemotePartyInfo);
       
    38 
       
    39 private:
       
    40 	TPckgBuf<CTelephony::TCallInfoV1> iCallInfoV1Buff;
       
    41 	TPckgBuf<CTelephony::TRemotePartyInfoV1> iRemoteInfoV1Buff;
       
    42 	TPckgBuf<CTelephony::TCallSelectionV1> iCallSelectionV1Buff;
       
    43 	};
       
    44 		
       
    45 
       
    46 //AO classes used in test steps
       
    47 class TTestCallParams;
       
    48 class CTestDialNewCallAct;
       
    49 class CTestHangupAct;
       
    50 class CTestAnswerIncomingCallAct;
       
    51 
       
    52 class CNotifyLineStatusBaseAct: public CEtelIsvActBase, public MActionParent 
       
    53 	{
       
    54 public:
       
    55 	static void PrintLineStatus(CEtelIsvTestStep* aTestStep, TDes& aLine, const CTelephony::TCallStatus aStatus);
       
    56 	static void PrintGetCallInfo(CEtelIsvTestStep* aTestStep,  CTelephony::TCallSelect aCallSelect, CTelephony::TCallInfoV1& aCallInfoV1, CTelephony::TRemotePartyInfoV1& aRemoteInfoV1);
       
    57 	
       
    58 	enum TTestToRun
       
    59 		{
       
    60 		EGetLineStatus,
       
    61 		EGetCallInfo,
       
    62 		EGetCallStateAndDynamicCaps
       
    63 		};
       
    64 	
       
    65 	virtual void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun)=0;
       
    66 protected:
       
    67 	CNotifyLineStatusBaseAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
       
    68 	void CallGetCallInfo(const CTelephony::TCallSelect aSelect, CTelephony::TCallStatus aExpStatus);
       
    69 protected:
       
    70 	TTestCallParams* iTestCallParams;
       
    71 	CTelephony::TCallStatusV1 iCallStatusV1;
       
    72 	CTelephony::TCallStatusV1Pckg iCallStatusV1Pckg;
       
    73 	TBool iFinish;
       
    74 	TTestToRun iTestToRun;
       
    75 	CTelephony::TNotificationEvent iEvent;
       
    76 	CTestHangupAct* iHangupAct;	
       
    77 	};
       
    78 
       
    79 class CNotifyLineStatusMOAct : public CNotifyLineStatusBaseAct 
       
    80 	{
       
    81 public:	// functions
       
    82 	
       
    83 	static CNotifyLineStatusMOAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony);
       
    84 	void ConstructL(); 
       
    85 	~CNotifyLineStatusMOAct();
       
    86 	void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun);	//from CNotifyLineStatusBaseAct
       
    87 	void DoCancel();
       
    88 	void RunL();
       
    89 	void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent);	//from MActionParent
       
    90 protected:
       
    91 	CNotifyLineStatusMOAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
       
    92 private:	// data	
       
    93 	CTestDialNewCallAct* iDialNewCallAct;
       
    94 	};
       
    95 
       
    96 class CNotifyLineStatusMTAct : public CNotifyLineStatusBaseAct 
       
    97 	{
       
    98 public:	// functions
       
    99 	
       
   100 	static CNotifyLineStatusMTAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony, TInt& aCallCount);
       
   101 	void ConstructL(); 
       
   102 	~CNotifyLineStatusMTAct();
       
   103 	void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun);	//from CNotifyLineStatusBaseAct
       
   104 	void DoCancel();
       
   105 	void RunL();
       
   106 	void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent);	//from MActionParent
       
   107 protected:
       
   108 	CNotifyLineStatusMTAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aCallCount);
       
   109 private:	// data	
       
   110 	CTestAnswerIncomingCallAct* iAnswerIncomingCallAct;
       
   111 	TInt& iCallCount;
       
   112 	};
       
   113 	
       
   114 class CTestLineFuncFlightModeOnWithPublishSubscribe : public CEtelIsvTestStep
       
   115 	{
       
   116 public:
       
   117 	CTestLineFuncFlightModeOnWithPublishSubscribe() ;
       
   118 	~CTestLineFuncFlightModeOnWithPublishSubscribe(){} ;
       
   119 	virtual enum TVerdict doTestStepL();
       
   120 	};
       
   121 
       
   122 class CNotifyLineStatusNoCapsMTAct : public CNotifyLineStatusMTAct 
       
   123  	{
       
   124  public:	
       
   125  	static CNotifyLineStatusNoCapsMTAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony, TInt& aCallCount);
       
   126  	void RunL();
       
   127  protected:
       
   128  	CNotifyLineStatusNoCapsMTAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aCallCount);
       
   129  	};
       
   130 
       
   131 class CTestGetLineStatusNoCaps : public CEtelIsvTestStep	//tests GetLineInfo()
       
   132  	{
       
   133  public:
       
   134  	CTestGetLineStatusNoCaps(TInt& aCallCount) ;
       
   135  	~CTestGetLineStatusNoCaps(){} ;
       
   136  	virtual enum TVerdict doTestStepL();
       
   137  private:
       
   138  	TInt& iCallCount;
       
   139  	};	
       
   140 
       
   141 #endif