1 // Copyright (c) 1997-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Interface Manager API
19 @file nifman_internal.h
23 #if !defined(__NIFMAN_INTERNAL_H__)
24 #define __NIFMAN_INTERNAL_H__
27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
28 #include <es_prot_internal.h>
29 #include <es_sock_partner.h>
34 Static internal API class
37 enum TNifSocketState { ENifBuffers2048=-4, ENifBuffers1024, ENifBuffers512,
39 ENifSocketCreated=0, ENifSocketOpen=3, ENifSocketConnected=4,
47 class CConnectionProvdBase;
52 class MConnectionNotify;
53 class CConnectionProvdBase;
57 /** Network protocol support */
58 IMPORT_C static void BindL(MNifIfUser& aUser, TAny* aId, TDes& aResult, const TDesC& aName=TPtrC(0,0));
59 IMPORT_C static void NetworkLayerClosed(MNifIfUser& aUser);
60 IMPORT_C static void StartL(TDes& aResult, const TDesC& aName=TPtrC());
61 IMPORT_C static void Stop(const TDesC& aName=TPtrC());
62 IMPORT_C static CNifIfBase* CreateInterfaceL(const TDesC& aName, MNifIfNotify* aNotify);
63 IMPORT_C static CNifAgentBase* CreateAgentL(const TDesC& aAgentName, const TBool aNewInstance = EFalse);
64 IMPORT_C static void CheckInstalledMBufManagerL();
65 IMPORT_C static CProtocolBase* IsProtocolLoaded(const TDesC& aName);
66 IMPORT_C static void CheckInstalledL();
67 IMPORT_C static TInt SetSocketState(TNifSocketState aState, CServProviderBase* aProvd);
68 IMPORT_C static void ProgressL(TNifProgress& aProgress, const TDesC& aName=TPtrC());
69 IMPORT_C static void Stop(TAny* aId, CNifIfBase* aIf=0);
70 IMPORT_C static void ProgressL(TNifProgress& aProgress, TAny* aId, CNifIfBase* aIf=0);
71 IMPORT_C static CConnectionProvdBase* NewConnectionL(MConnectionNotify* aConnection, TUint aId);
72 /** deprecated function */
73 IMPORT_C static CNifIfBase* CreateInterfaceL(const TDesC& aName);
78 Debug-only option level used to pass test-only option names onto PPP.
81 const TUint KCOLLinkLayerTestLevel = 325;
88 const TUint KNifSessionSetConnectionAttempt = KConnInternalOptionBit|8;
94 const TUint KNifSessionGetConnectionAttempt = KConnInternalOptionBit|9;
100 const TUint KNifSessionSetConnectionProvider = KConnInternalOptionBit|10;
105 @ref RConnection::Ioctl
107 const TUint KConnSetDhcpRawOptionData = KConnWriteUserDataBit|KConnReadUserDataBit|103;
109 #endif // __NIFMAN_H__