diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyutils/etel3rdpartyapi/Test/te_etelIsv/TE_EtelIsvLineInfo.h --- a/telephonyutils/etel3rdpartyapi/Test/te_etelIsv/TE_EtelIsvLineInfo.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyutils/etel3rdpartyapi/Test/te_etelIsv/TE_EtelIsvLineInfo.h Thu May 06 15:10:38 2010 +0100 @@ -1,141 +1,141 @@ -// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - - -#ifndef __TE_ETELISVLINEINFO_H_ -#define __TE_ETELISVLINEINFO_H_ - -class CTestGetLineStatus : public CEtelIsvTestStep //tests GetLineInfo() - { -public: - CTestGetLineStatus(TInt& aCallCount) ; - ~CTestGetLineStatus(){} ; - virtual enum TVerdict doTestStepL(); -private: - TInt& iCallCount; - TPckgBuf iStatusV1Buff; - }; - -class CTestGetCallInfo : public CEtelIsvTestStep //tests GetCallInfo() - { -public: - CTestGetCallInfo() ; - ~CTestGetCallInfo(){} ; - virtual enum TVerdict doTestStepL(); - void TestResults(CTelephony::TCallInfoV1& aActualCallInfo, CTelephony::TCallInfoV1& aExpCallInfo, CTelephony::TRemotePartyInfoV1& aActualRemotePartyInfo, CTelephony::TRemotePartyInfoV1& aExpRemotePartyInfo); - -private: - TPckgBuf iCallInfoV1Buff; - TPckgBuf iRemoteInfoV1Buff; - TPckgBuf iCallSelectionV1Buff; - }; - - -//AO classes used in test steps -class TTestCallParams; -class CTestDialNewCallAct; -class CTestHangupAct; -class CTestAnswerIncomingCallAct; - -class CNotifyLineStatusBaseAct: public CEtelIsvActBase, public MActionParent - { -public: - static void PrintLineStatus(CEtelIsvTestStep* aTestStep, TDes& aLine, const CTelephony::TCallStatus aStatus); - static void PrintGetCallInfo(CEtelIsvTestStep* aTestStep, CTelephony::TCallSelect aCallSelect, CTelephony::TCallInfoV1& aCallInfoV1, CTelephony::TRemotePartyInfoV1& aRemoteInfoV1); - - enum TTestToRun - { - EGetLineStatus, - EGetCallInfo, - EGetCallStateAndDynamicCaps - }; - - virtual void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun)=0; -protected: - CNotifyLineStatusBaseAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony); - void CallGetCallInfo(const CTelephony::TCallSelect aSelect, CTelephony::TCallStatus aExpStatus); -protected: - TTestCallParams* iTestCallParams; - CTelephony::TCallStatusV1 iCallStatusV1; - CTelephony::TCallStatusV1Pckg iCallStatusV1Pckg; - TBool iFinish; - TTestToRun iTestToRun; - CTelephony::TNotificationEvent iEvent; - CTestHangupAct* iHangupAct; - }; - -class CNotifyLineStatusMOAct : public CNotifyLineStatusBaseAct - { -public: // functions - - static CNotifyLineStatusMOAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony); - void ConstructL(); - ~CNotifyLineStatusMOAct(); - void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun); //from CNotifyLineStatusBaseAct - void DoCancel(); - void RunL(); - void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent); //from MActionParent -protected: - CNotifyLineStatusMOAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony); -private: // data - CTestDialNewCallAct* iDialNewCallAct; - }; - -class CNotifyLineStatusMTAct : public CNotifyLineStatusBaseAct - { -public: // functions - - static CNotifyLineStatusMTAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony, TInt& aCallCount); - void ConstructL(); - ~CNotifyLineStatusMTAct(); - void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun); //from CNotifyLineStatusBaseAct - void DoCancel(); - void RunL(); - void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent); //from MActionParent -protected: - CNotifyLineStatusMTAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aCallCount); -private: // data - CTestAnswerIncomingCallAct* iAnswerIncomingCallAct; - TInt& iCallCount; - }; - -class CTestLineFuncFlightModeOnWithPublishSubscribe : public CEtelIsvTestStep - { -public: - CTestLineFuncFlightModeOnWithPublishSubscribe() ; - ~CTestLineFuncFlightModeOnWithPublishSubscribe(){} ; - virtual enum TVerdict doTestStepL(); - }; - -class CNotifyLineStatusNoCapsMTAct : public CNotifyLineStatusMTAct - { - public: - static CNotifyLineStatusNoCapsMTAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony, TInt& aCallCount); - void RunL(); - protected: - CNotifyLineStatusNoCapsMTAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aCallCount); - }; - -class CTestGetLineStatusNoCaps : public CEtelIsvTestStep //tests GetLineInfo() - { - public: - CTestGetLineStatusNoCaps(TInt& aCallCount) ; - ~CTestGetLineStatusNoCaps(){} ; - virtual enum TVerdict doTestStepL(); - private: - TInt& iCallCount; - }; - -#endif +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + +#ifndef __TE_ETELISVLINEINFO_H_ +#define __TE_ETELISVLINEINFO_H_ + +class CTestGetLineStatus : public CEtelIsvTestStep //tests GetLineInfo() + { +public: + CTestGetLineStatus(TInt& aCallCount) ; + ~CTestGetLineStatus(){} ; + virtual enum TVerdict doTestStepL(); +private: + TInt& iCallCount; + TPckgBuf iStatusV1Buff; + }; + +class CTestGetCallInfo : public CEtelIsvTestStep //tests GetCallInfo() + { +public: + CTestGetCallInfo() ; + ~CTestGetCallInfo(){} ; + virtual enum TVerdict doTestStepL(); + void TestResults(CTelephony::TCallInfoV1& aActualCallInfo, CTelephony::TCallInfoV1& aExpCallInfo, CTelephony::TRemotePartyInfoV1& aActualRemotePartyInfo, CTelephony::TRemotePartyInfoV1& aExpRemotePartyInfo); + +private: + TPckgBuf iCallInfoV1Buff; + TPckgBuf iRemoteInfoV1Buff; + TPckgBuf iCallSelectionV1Buff; + }; + + +//AO classes used in test steps +class TTestCallParams; +class CTestDialNewCallAct; +class CTestHangupAct; +class CTestAnswerIncomingCallAct; + +class CNotifyLineStatusBaseAct: public CEtelIsvActBase, public MActionParent + { +public: + static void PrintLineStatus(CEtelIsvTestStep* aTestStep, TDes& aLine, const CTelephony::TCallStatus aStatus); + static void PrintGetCallInfo(CEtelIsvTestStep* aTestStep, CTelephony::TCallSelect aCallSelect, CTelephony::TCallInfoV1& aCallInfoV1, CTelephony::TRemotePartyInfoV1& aRemoteInfoV1); + + enum TTestToRun + { + EGetLineStatus, + EGetCallInfo, + EGetCallStateAndDynamicCaps + }; + + virtual void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun)=0; +protected: + CNotifyLineStatusBaseAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony); + void CallGetCallInfo(const CTelephony::TCallSelect aSelect, CTelephony::TCallStatus aExpStatus); +protected: + TTestCallParams* iTestCallParams; + CTelephony::TCallStatusV1 iCallStatusV1; + CTelephony::TCallStatusV1Pckg iCallStatusV1Pckg; + TBool iFinish; + TTestToRun iTestToRun; + CTelephony::TNotificationEvent iEvent; + CTestHangupAct* iHangupAct; + }; + +class CNotifyLineStatusMOAct : public CNotifyLineStatusBaseAct + { +public: // functions + + static CNotifyLineStatusMOAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony); + void ConstructL(); + ~CNotifyLineStatusMOAct(); + void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun); //from CNotifyLineStatusBaseAct + void DoCancel(); + void RunL(); + void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent); //from MActionParent +protected: + CNotifyLineStatusMOAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony); +private: // data + CTestDialNewCallAct* iDialNewCallAct; + }; + +class CNotifyLineStatusMTAct : public CNotifyLineStatusBaseAct + { +public: // functions + + static CNotifyLineStatusMTAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony, TInt& aCallCount); + void ConstructL(); + ~CNotifyLineStatusMTAct(); + void StartTestL(TTestCallParams& aTestCallParams, TTestToRun aTestToRun); //from CNotifyLineStatusBaseAct + void DoCancel(); + void RunL(); + void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent); //from MActionParent +protected: + CNotifyLineStatusMTAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aCallCount); +private: // data + CTestAnswerIncomingCallAct* iAnswerIncomingCallAct; + TInt& iCallCount; + }; + +class CTestLineFuncFlightModeOnWithPublishSubscribe : public CEtelIsvTestStep + { +public: + CTestLineFuncFlightModeOnWithPublishSubscribe() ; + ~CTestLineFuncFlightModeOnWithPublishSubscribe(){} ; + virtual enum TVerdict doTestStepL(); + }; + +class CNotifyLineStatusNoCapsMTAct : public CNotifyLineStatusMTAct + { + public: + static CNotifyLineStatusNoCapsMTAct* NewLC(CEtelIsvTestStep* aTestStep,CTelephony* aTelephony, TInt& aCallCount); + void RunL(); + protected: + CNotifyLineStatusNoCapsMTAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aCallCount); + }; + +class CTestGetLineStatusNoCaps : public CEtelIsvTestStep //tests GetLineInfo() + { + public: + CTestGetLineStatusNoCaps(TInt& aCallCount) ; + ~CTestGetLineStatusNoCaps(){} ; + virtual enum TVerdict doTestStepL(); + private: + TInt& iCallCount; + }; + +#endif