telephonyprotocols/umtsgprsscpr/spudtel/inc/reteldriverinput.h
author hgs
Mon, 28 Jun 2010 17:02:18 +0100
changeset 45 28dbf5a297f4
parent 44 8b72faa1200f
permissions -rw-r--r--
201024_05
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     2
// All rights reserved.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     7
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     8
// Initial Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    10
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    11
// Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    12
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    13
// Description:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    14
// Header for etel driver input class
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    15
// 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    16
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    17
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    18
/**
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    19
 @file 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    20
 @internalComponent
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    21
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    22
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    23
#ifndef RETELDRIVERINPUT_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    24
#define RETELDRIVERINPUT_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    25
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    26
#include <e32def.h>
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    27
#include <e32std.h>
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    28
#include <networking/umtsnifcontrolif.h>	// definition of TContextId
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    29
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    30
#include "eteldrivernmspace.h"	// definition of EtelDriver::TEtelInput
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    31
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    32
class CEtelDriverFactory;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    33
class CPdpFsmInterface;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    34
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    35
/** 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    36
	Definition of an input interface for SPUD eTel driver 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    37
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    38
@internalComponent
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    39
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    40
class REtelDriverInput
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    41
	{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    42
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    43
	REtelDriverInput();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    44
	virtual ~REtelDriverInput();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    45
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    46
	virtual void OpenL (CPdpFsmInterface& aPdpFsmInterface);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    47
	virtual void Close();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    48
	virtual void CreatePdpL (TContextId aPdpId);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    49
	virtual void DeletePdp (TContextId aPdpId);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    50
	virtual void Input(TContextId aPdpId, EtelDriver::TEtelInput aOperation);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    51
	virtual void CancelPdp (TContextId aPdpId);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    52
	virtual void StartPdpNotifications(TContextId aPdpId);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    53
	virtual void CancelPdpNotifications (TContextId aPdpId);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    54
	virtual void CancelAllPdps();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    55
	virtual void CancelAllPdpNotifications();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    56
	virtual void GetLastErrorCause (TContextId aPdpId, TInt& aLastErrorCause);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    57
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    58
protected:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    59
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    60
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    61
	// disable copy of an object
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    62
	inline REtelDriverInput(REtelDriverInput&);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    63
	inline REtelDriverInput& operator= (REtelDriverInput& aInput);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    64
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    65
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    66
	/** etel driver factory */
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    67
	CEtelDriverFactory*	iDriverFactory;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    68
	};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    69
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    70
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    71
// inlines
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    72
/** copy c'tor
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    73
	not supported for this class
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    74
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    75
inline REtelDriverInput::REtelDriverInput(REtelDriverInput&)
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    76
	{ 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    77
	// not supported
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    78
	__ASSERT_ALWAYS(EFalse, User::Panic(EtelDriver::KTxtSpudTel, KErrNotSupported)); 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    79
	}
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    80
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    81
/** assignment operator
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    82
	not supported for this class
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    83
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    84
inline REtelDriverInput& REtelDriverInput::operator= (REtelDriverInput& aInput)
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    85
	{ 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    86
	// not supported
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    87
	__ASSERT_ALWAYS(EFalse, User::Panic(EtelDriver::KTxtSpudTel,KErrNotSupported));
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    88
	return aInput; 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    89
	}
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    90
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    91
#endif
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    92
// RETELDRIVERINPUT_H