telephonyserver/etelpacketdata/Te_EtelPacket/Te_EtelPacketMbmsContext.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 // EtelPacketMbmsContext.h
       
    15 // This is the header file for 
       
    16 // 
       
    17 //
       
    18 
       
    19 /**@file
       
    20 @internalComponent */
       
    21 #ifndef TE_ETELPACKETMBMSCONTEXT_H_
       
    22 #define TE_ETELPACKETMBMSCONTEXT_H_
       
    23 #include "Te_EtelPacketTestStepBase.h"
       
    24 #include "TE_Pcktcanceller.h"
       
    25 #include "pcktretrieve.h"
       
    26 
       
    27 _LIT(KMbmsContext,"MBMS_CONTEXT");
       
    28 class CTestMbmsContext : public CTestStepEtelPacket
       
    29 	{
       
    30 public:
       
    31 	CTestMbmsContext();
       
    32 	~CTestMbmsContext();
       
    33 	virtual TVerdict doTestStepPreambleL();
       
    34 	virtual TVerdict doTestStepPostambleL();
       
    35 	virtual enum TVerdict doTestStepL( void );
       
    36 protected:
       
    37 	void TestOpenMbmsContextL();
       
    38 	void TestMbmsConfigurationL();
       
    39 	void TestActivateMbmsContextL();
       
    40 	void TestDeactivateMbmsContextL();
       
    41 	void TestMbmsServiceStatusL();
       
    42 	void TestMbmsUpdateSessionL();
       
    43 	void TestInitialiseMbmsContextL();
       
    44 	void TestMbmsGetSessionListL();
       
    45 private:
       
    46 	RPhone iPhone;
       
    47 	RPacketService iPcktService;
       
    48 	RPacketMbmsContext iMbmsContext;
       
    49 	CActiveScheduler* iTestScheduler;
       
    50 	};
       
    51 
       
    52 NONSHARABLE_CLASS(CTestMbmsSession) : public CActive
       
    53 		{
       
    54 public:
       
    55 	static CTestMbmsSession* NewLC(RPacketMbmsContext& aPcktMbmsContext, RPacketMbmsContext::CMbmsSession& aSessionIdList, CTestMbmsContext* aTestMbmsContext);
       
    56 	~CTestMbmsSession();
       
    57 	void Start();		
       
    58 	CRetrievePcktMbmsSessionList* iRetrieve;
       
    59 protected:
       
    60 	CTestMbmsSession(RPacketMbmsContext& aPcktMbmsContext, RPacketMbmsContext::CMbmsSession& aSessionIdList, CTestMbmsContext* aTestMbmsContext);
       
    61 	void ConstructL();
       
    62 	void RunL();
       
    63 	void DoCancel();
       
    64 	TInt RunError(TInt aError);
       
    65 protected:
       
    66 	RPacketMbmsContext::CMbmsSession& iSessionIdList;	
       
    67 public:
       
    68 	CTestCanceller* iCanceller;
       
    69 protected:
       
    70 	RPacketMbmsContext& iPcktMbmsContext;
       
    71 	CTestMbmsContext* iTestMbmsContext;
       
    72 		};
       
    73 	
       
    74 #endif /*TE_ETELPACKETMBMSCONTEXT_H_*/