|
1 // Copyright (c) 2006-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 // netcfgextnotify.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @brief MNifIfNotify implementation for network config extensions |
|
21 @internalTechnology |
|
22 */ |
|
23 |
|
24 #ifndef SYMBIAN_NETCFGEXTNOTIFY_H |
|
25 #define SYMBIAN_NETCFGEXTNOTIFY_H |
|
26 |
|
27 #include <comms-infras/nifif.h> |
|
28 #include <comms-infras/ss_subconnprov.h> |
|
29 |
|
30 #include <comms-infras/nifprvar_internal.h> |
|
31 |
|
32 class CNetCfgExtNotify : public CBase, public MNifIfNotify |
|
33 { |
|
34 public: |
|
35 IMPORT_C static CNetCfgExtNotify* NewL(ESock::CSubConnectionProviderBase* aScpr); |
|
36 |
|
37 /** |
|
38 MNifIfNotify interface |
|
39 Only IfProgress, DoReadDes and DoReadInt supported. |
|
40 */ |
|
41 void LinkLayerDown(TInt aReason, TAction aAction); |
|
42 void LinkLayerUp(); |
|
43 void NegotiationFailed(CNifIfBase* aIf, TInt aReason); |
|
44 TInt Authenticate(TDes& aUsername, TDes& aPassword); |
|
45 void CancelAuthenticate(); |
|
46 TInt GetExcessData(TDes8& aBuffer); |
|
47 void IfProgress(TInt aStage, TInt aError); |
|
48 void IfProgress(TSubConnectionUniqueId aSubConnectionUniqueId, TInt aStage, TInt aError); |
|
49 void OpenRoute(); |
|
50 void CloseRoute(); |
|
51 TInt Notification(TNifToAgentEventType aEvent, void * aInfo = NULL); |
|
52 void BinderLayerDown(CNifIfBase* aBinderIf, TInt aReason, TAction aAction); |
|
53 TInt PacketActivity(TDataTransferDirection aDirection, TUint aBytes, TBool aResetTimer); |
|
54 void NotifyDataSent(TSubConnectionUniqueId aSubConnectionUniqueId, TUint aUplinkVolume); |
|
55 void NotifyDataReceived(TSubConnectionUniqueId aSubConnectionUniqueId, TUint aDownlinkVolume); |
|
56 void NifEvent(TNetworkAdaptorEventType aEventType, TUint aEvent, const TDesC8& aEventData, TAny* aSource=0); |
|
57 |
|
58 TInt DoReadInt(const TDesC& aField, TUint32& aValue,const RMessagePtr2* aMessage); |
|
59 TInt DoWriteInt(const TDesC& aField, TUint32 aValue,const RMessagePtr2* aMessage); |
|
60 TInt DoReadDes(const TDesC& aField, TDes8& aValue,const RMessagePtr2* aMessage); |
|
61 TInt DoReadDes(const TDesC& aField, TDes16& aValue,const RMessagePtr2* aMessage); |
|
62 TInt DoWriteDes(const TDesC& aField, const TDesC8& aValue,const RMessagePtr2* aMessage); |
|
63 TInt DoWriteDes(const TDesC& aField, const TDesC16& aValue,const RMessagePtr2* aMessage); |
|
64 TInt DoReadBool(const TDesC& aField, TBool& aValue,const RMessagePtr2* aMessage); |
|
65 TInt DoWriteBool(const TDesC& aField, TBool aValue,const RMessagePtr2* aMessage); |
|
66 private: |
|
67 CNetCfgExtNotify(ESock::CSubConnectionProviderBase* aScpr); |
|
68 |
|
69 ESock::CSubConnectionProviderBase* iScpr; |
|
70 }; |
|
71 |
|
72 #endif // SYMBIAN_NETCFGEXTNOTIFY_H |
|
73 |