24
|
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 |
// PDP FSM interface header
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef RPDPFSMINTERFACE_H
|
|
24 |
#define RPDPFSMINTERFACE_H
|
|
25 |
|
|
26 |
#include <e32base.h>
|
|
27 |
#include <etelmm.h>
|
|
28 |
#include <etelqos.h>
|
|
29 |
|
|
30 |
#include <networking/umtsnifcontrolif.h>
|
|
31 |
#include <networking/mpdpfsminterface.h>
|
|
32 |
#include <etelpckt.h>
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
#ifdef SYMBIAN_NETWORKING_UMTSR5
|
|
37 |
class TQoSR5Requested;
|
|
38 |
class TQoSR5Negotiated;
|
|
39 |
|
|
40 |
#ifdef _DEBUG
|
|
41 |
_LIT(KDescNullPdpFsm, "iFsmImpl=NULL");
|
|
42 |
#endif
|
|
43 |
|
|
44 |
#else
|
|
45 |
class TQoSR99_R4Requested;
|
|
46 |
class TQoSR99_R4Negotiated;
|
|
47 |
|
|
48 |
#endif
|
|
49 |
// SYMBIAN_NETWORKING_UMTSR5
|
|
50 |
|
|
51 |
|
|
52 |
class TFTInfo;
|
|
53 |
class TFTOperationCode;
|
|
54 |
class CPdpFsmFactory;
|
|
55 |
|
|
56 |
NONSHARABLE_CLASS(RPdpFsmInterface) : public MPdpFsmInterface
|
|
57 |
/**
|
|
58 |
* R-class to proxy methods calls to CPdpFsmInterface.
|
|
59 |
*
|
|
60 |
* @internalComponent
|
|
61 |
*/
|
|
62 |
{
|
|
63 |
public:
|
|
64 |
RPdpFsmInterface();
|
|
65 |
virtual ~RPdpFsmInterface();
|
|
66 |
|
|
67 |
virtual void OpenL(MSpudManInterface * aSpudManInterface, TName& aName);
|
|
68 |
virtual void Close();
|
|
69 |
|
|
70 |
virtual TInt Input (TContextId aPdpId, const TInt aOperation, const TInt aParam=KErrNone);
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
#ifdef SYMBIAN_NETWORKING_UMTSR5
|
|
75 |
|
|
76 |
// This is to set the status of IM CN signalling parameter
|
|
77 |
virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR5Requested& aParam);
|
|
78 |
virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR5Negotiated& aParam);
|
|
79 |
virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR5Requested& aParam) const;
|
|
80 |
virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR5Negotiated& aParam) const;
|
|
81 |
virtual void SetIMCNSignalling(TBool aImCnSignalling);
|
|
82 |
#else
|
|
83 |
// !SYMBIAN_NETWORKING_UMTSR5
|
|
84 |
|
|
85 |
virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Requested& aParam);
|
|
86 |
virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Negotiated& aParam);
|
|
87 |
virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Requested& aParam) const;
|
|
88 |
virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Negotiated& aParam) const;
|
|
89 |
|
|
90 |
#endif
|
|
91 |
// SYMBIAN_NETWORKING_UMTSR5
|
|
92 |
|
|
93 |
virtual TInt Set(TContextId aPdpId, const TTFTInfo& aParam);
|
|
94 |
virtual TInt Set(TContextId aPdpId, const TTFTOperationCode& aParam);
|
|
95 |
virtual TInt Set(TContextId aPdpId, const RPacketContext::TDataChannelV2& aParam);
|
|
96 |
virtual TInt Set(TContextId aPdpId, const RPacketContext::TContextConfigGPRS& aParam);
|
|
97 |
virtual TInt Set(TContextId aPdpId, const RPacketContext::TContextStatus& aParam);
|
|
98 |
|
|
99 |
virtual TInt Get(TContextId aPdpId, TTFTInfo& aParam) const;
|
|
100 |
virtual TInt Get(TContextId aPdpId, TTFTOperationCode& aParam) const;
|
|
101 |
virtual TInt Get(TContextId aPdpId, RPacketContext::TDataChannelV2& aParam) const;
|
|
102 |
virtual TInt Get(TContextId aPdpId, RPacketContext::TContextConfigGPRS& aParam) const;
|
|
103 |
virtual TInt Get(TContextId aPdpId, RPacketContext::TContextStatus& aParam) const;
|
|
104 |
|
|
105 |
virtual TInt GetLastErrorCause(TContextId aPdpId, TInt& aLastErrorCause) const;
|
|
106 |
|
|
107 |
virtual void Set(RPacketService::TStatus aParam); // applies to all contexts
|
|
108 |
virtual void Get(RPacketService::TStatus& aParam); // applies to all contexts
|
|
109 |
|
|
110 |
// additional accessors
|
|
111 |
virtual const TName& TsyName(void);
|
|
112 |
|
|
113 |
void Init (const MPdpFsmInterface* aSpudMan);
|
|
114 |
|
|
115 |
inline TBool IsInitialised ();
|
|
116 |
|
|
117 |
virtual void SetContextTerminationErrorAndStop(TContextId aPdpId, TInt aErrorCode);
|
|
118 |
|
|
119 |
protected:
|
|
120 |
private:
|
|
121 |
// DO NOT provide implementations to these methods: Copying this object should be disabled
|
|
122 |
RPdpFsmInterface(RPdpFsmInterface&);
|
|
123 |
RPdpFsmInterface& operator= (RPdpFsmInterface& aInput);
|
|
124 |
|
|
125 |
public:
|
|
126 |
protected:
|
|
127 |
private:
|
|
128 |
// FSM Factory - churns out FSMs
|
|
129 |
CPdpFsmFactory* iPdpFsmFactory;
|
|
130 |
|
|
131 |
RPacketService::TStatus iNetworkStatus;
|
|
132 |
MPdpFsmInterface* iFsmImpl;
|
|
133 |
};
|
|
134 |
|
|
135 |
IMPORT_C RPdpFsmInterface* NewPdpFsmInterfaceL();
|
|
136 |
|
|
137 |
|
|
138 |
TBool RPdpFsmInterface::IsInitialised ()
|
|
139 |
{
|
|
140 |
return iFsmImpl != NULL;
|
|
141 |
}
|
|
142 |
|
|
143 |
|
|
144 |
#endif
|
|
145 |
// RPDPFSMINTERFACE_H
|
|
146 |
|