telephonyprotocols/pdplayer/umts/test/te_spud/inc/InputRequestListener.h
branchRCL_3
changeset 41 b836c4d4fce7
parent 0 3553901f7fa8
equal deleted inserted replaced
29:cca59d85ca31 41:b836c4d4fce7
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   160 		ECleanup,
   160 		ECleanup,
   161 		EFsmObjectCreate
   161 		EFsmObjectCreate
   162 		};
   162 		};
   163 
   163 
   164 public:
   164 public:
   165 static CInputRequestListener* NewL(TBool aUseTestPdpFsmInterface, TInt aUmtsRelease);
   165 static CInputRequestListener* NewL(TBool aUseTestPdpFsmInterface, TThreadId aParentThreadId, TInt aUmtsRelease);
   166 	virtual ~CInputRequestListener();
   166 	virtual ~CInputRequestListener();
   167 	void Activate();
   167 	void Activate();
   168 	void RunL();
   168 	void RunL();
   169 	void DoCancel();
   169 	void DoCancel();
   170 	
   170 	
   171 	void CreateUnitUnderTestL();
   171 	void CreateUnitUnderTestL();
   172 	void DeleteUnitUnderTest();
   172 	void DeleteUnitUnderTest();
   173 
   173 
   174 private:
   174 private:
   175 	CInputRequestListener(TBool aUseTestPdpFsmInterface, TInt aUmtsRelease);	
   175 	CInputRequestListener(TBool aUseTestPdpFsmInterface, TInt aUmtsRelease);	
   176 	void ConstructL();
   176 	void ConstructL(TThreadId aParentThreadId);
   177 	void CreateEtelDriverL();
   177 	void CreateEtelDriverL();
   178 	void CreatePdpFsmL();
   178 	void CreatePdpFsmL();
   179 
   179 
   180 public:
   180 public:
   181 	/** Set to true when testing Etel driver, and as such the test FSM interface it used to interact with Etel driver
   181 	/** Set to true when testing Etel driver, and as such the test FSM interface it used to interact with Etel driver
   254 /** Contains the data passed from the test execute thread to the active object thread */
   254 /** Contains the data passed from the test execute thread to the active object thread */
   255 class TActiveSchedulerThreadParams
   255 class TActiveSchedulerThreadParams
   256 	{
   256 	{
   257 	public:
   257 	public:
   258 	CInputRequestListener* iListener;
   258 	CInputRequestListener* iListener;
   259 	TThreadId iThreadId;
       
   260 	};
   259 	};
   261 
   260 
   262 /** The start-up method for the thread running the active objects */
   261 /** The start-up method for the thread running the active objects */
   263 TInt ActiveSchedulerThread(TAny* aActiveSchedulerParams);
   262 TInt ActiveSchedulerThread(TAny* aActiveSchedulerParams);
   264 
   263