|
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 // NIFMAN notification proxy class |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SPUDNOTIFY_H |
|
24 #define SPUDNOTIFY_H |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <comms-infras/nifif.h> |
|
28 #include <networking/umtsnifcontrolif.h> |
|
29 |
|
30 class CSpudBinderRef; |
|
31 class CBindMan; |
|
32 |
|
33 /** |
|
34 * Interface from the nif and the protocol layers to Nifman |
|
35 */ |
|
36 NONSHARABLE_CLASS(CSpudNotify) : public CBase, public MNifIfNotify |
|
37 { |
|
38 public: |
|
39 CSpudNotify(CBindMan& aBindMan, MNifIfNotify* aNotify, TContextId aContextId); |
|
40 ~CSpudNotify(); |
|
41 |
|
42 virtual void LinkLayerDown(TInt aReason, TAction aAction); |
|
43 virtual void LinkLayerUp(); |
|
44 virtual void NegotiationFailed(CNifIfBase* aIf, TInt aReason); |
|
45 virtual TInt Authenticate(TDes& aUsername, TDes& aPassword); |
|
46 virtual void CancelAuthenticate(); |
|
47 virtual TInt GetExcessData(TDes8& aBuffer); |
|
48 |
|
49 |
|
50 virtual void IfProgress(TInt aStage, TInt aError); |
|
51 virtual void IfProgress(TSubConnectionUniqueId aSubConnectionUniqueId, TInt aStage, TInt aError); |
|
52 virtual void OpenRoute(); |
|
53 virtual void CloseRoute(); |
|
54 virtual TInt Notification(TNifToAgentEventType aEvent, void * aInfo = NULL); |
|
55 virtual void BinderLayerDown(CNifIfBase* aBinderIf, TInt aReason, TAction aAction); |
|
56 virtual TInt PacketActivity(TDataTransferDirection aDirection, TUint aBytes, TBool aResetTimer); |
|
57 virtual void NotifyDataSent(TSubConnectionUniqueId aSubConnectionUniqueId, TUint aUplinkVolume); |
|
58 virtual void NotifyDataReceived(TSubConnectionUniqueId aSubConnectionUniqueId, TUint aDownlinkVolume); |
|
59 virtual void NifEvent(TNetworkAdaptorEventType aEventType, TUint aEvent, const TDesC8& aEventData, TAny* aSource=0); |
|
60 |
|
61 |
|
62 |
|
63 protected: |
|
64 virtual TInt DoReadInt(const TDesC& aField, TUint32& aValue,const RMessagePtr2* aMessage); |
|
65 virtual TInt DoWriteInt(const TDesC& aField, TUint32 aValue,const RMessagePtr2* aMessage); |
|
66 virtual TInt DoReadDes(const TDesC& aField, TDes8& aValue,const RMessagePtr2* aMessage); |
|
67 virtual TInt DoReadDes(const TDesC& aField, TDes16& aValue,const RMessagePtr2* aMessage); |
|
68 virtual TInt DoWriteDes(const TDesC& aField, const TDesC8& aValue,const RMessagePtr2* aMessage); |
|
69 virtual TInt DoWriteDes(const TDesC& aField, const TDesC16& aValue,const RMessagePtr2* aMessage); |
|
70 virtual TInt DoReadBool(const TDesC& aField, TBool& aValue,const RMessagePtr2* aMessage); |
|
71 virtual TInt DoWriteBool(const TDesC& aField, TBool aValue,const RMessagePtr2* aMessage); |
|
72 |
|
73 |
|
74 private: |
|
75 CBindMan& iBindMan; |
|
76 MNifIfNotify* iNotify; |
|
77 TContextId iContextId; |
|
78 }; |
|
79 |
|
80 |
|
81 #endif /*SPUDNOTIFY_H*/ |