diff -r 000000000000 -r 3553901f7fa8 telephonyprotocols/pdplayer/umts/spudtel/inc/reteldriverinput.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telephonyprotocols/pdplayer/umts/spudtel/inc/reteldriverinput.h Tue Feb 02 01:41:59 2010 +0200 @@ -0,0 +1,92 @@ +// 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 +#include +#include // definition of TContextId + +#include "eteldrivernmspace.h" // definition of EtelDriver::TEtelInput +#include "PDPFSM.h" + +class CEtelDriverFactory; +class CPdpFsmInterface; +using namespace SpudMan; +/** + Definition of an input interface for SPUD eTel driver + +@internalComponent +*/ +class REtelDriverInput + { +public: + REtelDriverInput(); + virtual ~REtelDriverInput(); + + virtual void OpenL (CPdpFsmInterface& aPdpFsmInterface); + virtual void Close(); + virtual void CreatePdpL (TContextId aPdpId,SpudMan::TPdpContextType aContextType); + 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(); + +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