telephonyserver/etelpacketdata/Te_EtelPacket/Te_EtelPacketMbmsService.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2008-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 // EtelPacketMbmsService.h
       
    15 // This is the header file for 
       
    16 // 
       
    17 //
       
    18 
       
    19 /**@file
       
    20 @internalComponent */
       
    21 #ifndef TE_ETELPACKETMBMSSERVICE_H_
       
    22 #define TE_ETELPACKETMBMSSERVICE_H_
       
    23 #include "Te_EtelPacketTestStepBase.h"
       
    24 #include "TE_Pcktcanceller.h"
       
    25 #include "pcktretrieve.h"
       
    26 
       
    27 _LIT(KMbmsService,"MBMS_SERVICE");
       
    28 _LIT(KMbmsSession,"MBMS_SESSION");
       
    29 class CTestMbmsService : public CTestStepEtelPacket
       
    30 	{
       
    31 public:
       
    32 	CTestMbmsService();
       
    33 	~CTestMbmsService();
       
    34 	virtual TVerdict doTestStepPreambleL();
       
    35 	virtual TVerdict doTestStepPostambleL();
       
    36 	virtual enum TVerdict doTestStepL( void );
       
    37 protected:
       
    38 	void TestMbmsUpdateServiceL();
       
    39 	void TestMbmsRetrieveServiceListL();
       
    40 	void TestMbmsServicesEnumerationL();
       
    41 private:
       
    42 	RPhone iPhone;
       
    43 	RPacketService iPcktService;
       
    44 	CActiveScheduler* iTestScheduler;
       
    45 public:
       
    46 	class CTestRetrieveEtelPacketMonitorServices : public CActive
       
    47 	 	{
       
    48 	public:
       
    49 	  	static 	CTestRetrieveEtelPacketMonitorServices* NewLC(RPacketService& aService,CTestMbmsService* aTestService);
       
    50 	  	~CTestRetrieveEtelPacketMonitorServices();	  	
       
    51 	  	void TestRetrieve(TBool aStartReqd);
       
    52 	  	void TestCancel();
       
    53 	protected:
       
    54 	CTestRetrieveEtelPacketMonitorServices(RPacketService& aService,CTestMbmsService* aTestService);
       
    55 	  	void ConstructL();
       
    56 	  	void RunL();
       
    57 	  	void DoCancel();
       
    58 	  	void Start();
       
    59 	  	CTestCanceller* RetrieveCancelPtr();
       
    60 	  	TInt CheckMonitorServicesResultsL();
       
    61 	  	TInt CheckMonitorServicesErrorResultsL();
       
    62 	protected:
       
    63 		CRetrievePcktMbmsMonitoredServices* iRetrieve;
       
    64 	  	CTestCanceller* iCanceller;
       
    65 	  	RPacketService& iService;
       
    66 	  	CTestMbmsService* iTestService;
       
    67 	   	};
       
    68 	friend class CTestRetrieveEtelPacketMonitorServices;
       
    69 	};
       
    70 	
       
    71 #endif /*TE_ETELPACKETMBMSSERVICE_H_*/