diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyprotocols/secondarypdpcontextumtsdriver/inc/reteldriverinput.h --- a/telephonyprotocols/secondarypdpcontextumtsdriver/inc/reteldriverinput.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyprotocols/secondarypdpcontextumtsdriver/inc/reteldriverinput.h Thu May 06 15:10:38 2010 +0100 @@ -1,91 +1,91 @@ -// 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 - -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 +// 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 + +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