telephonyprotocols/umtsgprsscpr/spudtel/inc/reteldriverinput.h
changeset 69 b982c3e940f3
parent 59 ac20d6a0a19d
child 73 70d75957b98f
equal deleted inserted replaced
59:ac20d6a0a19d 69:b982c3e940f3
     1 // Copyright (c) 2004-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 // Header for etel driver input class
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef RETELDRIVERINPUT_H
       
    24 #define RETELDRIVERINPUT_H
       
    25 
       
    26 #include <e32def.h>
       
    27 #include <e32std.h>
       
    28 #include <networking/umtsnifcontrolif.h>	// definition of TContextId
       
    29 
       
    30 #include "eteldrivernmspace.h"	// definition of EtelDriver::TEtelInput
       
    31 
       
    32 class CEtelDriverFactory;
       
    33 class CPdpFsmInterface;
       
    34 
       
    35 /** 
       
    36 	Definition of an input interface for SPUD eTel driver 
       
    37 
       
    38 @internalComponent
       
    39 */
       
    40 class REtelDriverInput
       
    41 	{
       
    42 public:
       
    43 	REtelDriverInput();
       
    44 	virtual ~REtelDriverInput();
       
    45 
       
    46 	virtual void OpenL (CPdpFsmInterface& aPdpFsmInterface);
       
    47 	virtual void Close();
       
    48 	virtual void CreatePdpL (TContextId aPdpId);
       
    49 	virtual void DeletePdp (TContextId aPdpId);
       
    50 	virtual void Input(TContextId aPdpId, EtelDriver::TEtelInput aOperation);
       
    51 	virtual void CancelPdp (TContextId aPdpId);
       
    52 	virtual void StartPdpNotifications(TContextId aPdpId);
       
    53 	virtual void CancelPdpNotifications (TContextId aPdpId);
       
    54 	virtual void CancelAllPdps();
       
    55 	virtual void CancelAllPdpNotifications();
       
    56 	virtual void GetLastErrorCause (TContextId aPdpId, TInt& aLastErrorCause);
       
    57 
       
    58 protected:
       
    59 
       
    60 private:
       
    61 	// disable copy of an object
       
    62 	inline REtelDriverInput(REtelDriverInput&);
       
    63 	inline REtelDriverInput& operator= (REtelDriverInput& aInput);
       
    64 	
       
    65 private:
       
    66 	/** etel driver factory */
       
    67 	CEtelDriverFactory*	iDriverFactory;
       
    68 	};
       
    69 	
       
    70 
       
    71 // inlines
       
    72 /** copy c'tor
       
    73 	not supported for this class
       
    74 */
       
    75 inline REtelDriverInput::REtelDriverInput(REtelDriverInput&)
       
    76 	{ 
       
    77 	// not supported
       
    78 	__ASSERT_ALWAYS(EFalse, User::Panic(EtelDriver::KTxtSpudTel, KErrNotSupported)); 
       
    79 	}
       
    80 	
       
    81 /** assignment operator
       
    82 	not supported for this class
       
    83 */
       
    84 inline REtelDriverInput& REtelDriverInput::operator= (REtelDriverInput& aInput)
       
    85 	{ 
       
    86 	// not supported
       
    87 	__ASSERT_ALWAYS(EFalse, User::Panic(EtelDriver::KTxtSpudTel,KErrNotSupported));
       
    88 	return aInput; 
       
    89 	}
       
    90 
       
    91 #endif
       
    92 // RETELDRIVERINPUT_H