telephonyserver/etelmultimode/TETEL/te_EtelMM/TE_mmbroadcast.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 17:02:16 +0300
changeset 26 8767c6acf334
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
permissions -rw-r--r--
Revision: 201019 Kit: 201019

// Copyright (c) 2000-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:
//

/**
 @file
 @internalComponent 
*/

#ifndef _TE_MMBROADCAST_H_
#define _TE_MMBROADCAST_H_

#include "TE_EtelMMTestStepBase.h"
#include <etelmm.h>
#include <e32base.h>
#include <mmretrieve.h>
#include "TE_mmcanceller.h"

class CTestBroadcastMessaging : public CEtelMMTestStepBase
	{
public:
	CTestBroadcastMessaging() ;
	~CTestBroadcastMessaging(){} ;
	virtual enum TVerdict doTestStepL();
	TInt iTestCount;

/*private:*/

	class CTestGetCbmiList : public CActive 
		{
	public:
		static CTestGetCbmiList* NewLC(RMobileBroadcastMessaging &aMessaging, CTestBroadcastMessaging* aTestBroadcastMessaging);
		~CTestGetCbmiList();
		void Start();
		CTestCanceller* RetrieveCancelPtr();
		
	protected:
		void RunL();
		void DoCancel();
		CTestGetCbmiList(RMobileBroadcastMessaging &aMessaging, CTestBroadcastMessaging* aTestBroadcastMessaging);
		void ConstructL();
		TInt CheckResults();
	protected:
		CRetrieveMobilePhoneBroadcastIdList* iRetrieve;
		CTestCanceller* iCanceller;
		RMobileBroadcastMessaging &iMessaging;
		RMobileBroadcastMessaging::TMobileBroadcastIdType iIdType;
		CTestBroadcastMessaging* iTestBroadcastMessaging;
		};

private:

	class CTestStoreCbmiList : public CActive
		{
	public:
		static CTestStoreCbmiList* NewLC(RMobileBroadcastMessaging &aMessaging, CTestBroadcastMessaging* aTestBroadcastMessaging);
		~CTestStoreCbmiList();
		void StartL();
		CTestCanceller* RetrieveCancelPtr();
	private:
		CTestStoreCbmiList(RMobileBroadcastMessaging &aMessaging, CTestBroadcastMessaging* aTestBroadcastMessaging);
		void ConstructL();
		void RunL();
		void DoCancel();
	private:
		CMobilePhoneBroadcastIdList *iList;
		CTestCanceller* iCanceller;
		RMobileBroadcastMessaging &iMessaging;
		RMobileBroadcastMessaging::TMobileBroadcastIdType iIdType;
		CTestBroadcastMessaging* iTestBroadcastMessaging;
		};
friend class CTestGetCbmiList;
friend class CTestStoreCbmiList;

	};

#endif