telephonyprotocols/secondarypdpcontextumtsdriver/inc/reteldriverinput.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 23:24:02 +0300
branchRCL_3
changeset 7 fe8b59ab9fa0
parent 0 3553901f7fa8
permissions -rw-r--r--
Revision: 201013 Kit: 201013

// Copyright (c) 2004-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:
// Header for etel driver input class
// 
//

/**
 @file 
 @internalComponent
*/

#ifndef RETELDRIVERINPUT_H
#define RETELDRIVERINPUT_H

#include <e32def.h>
#include <e32std.h>
#include <networking\UmtsNifControlIf.h>	// definition of TContextId

#include "eteldrivernmspace.h"	// definition of EtelDriver::TEtelInput

class CEtelDriverFactory;
class RPdpFsmInterface;

/** 
	Definition of an input interface for SPUD eTel driver 

@internalComponent
*/
class REtelDriverInput
	{
public:
	REtelDriverInput();
	virtual ~REtelDriverInput();

	virtual void OpenL (RPdpFsmInterface& aPdpFsmInterface);
	virtual void Close();
	virtual void CreatePdpL (TContextId aPdpId);
	virtual void DeletePdp (TContextId aPdpId);
	virtual void Input(TContextId aPdpId, EtelDriver::TEtelInput aOperation);
	virtual void CancelPdp (TContextId aPdpId);
	virtual void StartPdpNotifications(TContextId aPdpId);
	virtual void CancelPdpNotifications (TContextId aPdpId);
	virtual void CancelAllPdps();
	virtual void CancelAllPdpNotifications();
	virtual void GetLastErrorCause (TContextId aPdpId, TInt& aLastErrorCause);

protected:

private:
	// disable copy of an object
	inline REtelDriverInput(REtelDriverInput&);
	inline REtelDriverInput& operator= (REtelDriverInput& aInput);
	
private:
	/** etel driver factory */
	CEtelDriverFactory*	iDriverFactory;
	};
	

// inlines
/** copy c'tor
	not supported for this class
*/
inline REtelDriverInput::REtelDriverInput(REtelDriverInput&)
	{ 
	// not supported
	__ASSERT_ALWAYS(EFalse, User::Panic(EtelDriver::KTxtSpudTel, KErrNotSupported)); 
	}
	
/** assignment operator
	not supported for this class
*/
inline REtelDriverInput& REtelDriverInput::operator= (REtelDriverInput& aInput)
	{ 
	// not supported
	__ASSERT_ALWAYS(EFalse, User::Panic(EtelDriver::KTxtSpudTel,KErrNotSupported));
	return aInput; 
	}

#endif // RETELDRIVERINPUT_H