linklayercontrol/networkinterfacemgr/inc/nifman_internal.h
changeset 0 af10295192d8
child 14 23b59305592d
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Interface Manager API
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file nifman_internal.h
       
    20 */
       
    21 
       
    22 
       
    23 #if !defined(__NIFMAN_INTERNAL_H__)
       
    24 #define __NIFMAN_INTERNAL_H__
       
    25 
       
    26 #include <es_prot.h>
       
    27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    28 #include <es_prot_internal.h>
       
    29 #include <es_sock_partner.h>
       
    30 #endif
       
    31 
       
    32 
       
    33 /**
       
    34 Static internal API class
       
    35 @internalComponent
       
    36 */
       
    37 enum TNifSocketState { ENifBuffers2048=-4, ENifBuffers1024, ENifBuffers512, 
       
    38 					   ENifSocketNull=-1,
       
    39                        ENifSocketCreated=0, ENifSocketOpen=3, ENifSocketConnected=4,
       
    40 					   ENifSocketError=9 };
       
    41 
       
    42 class MNifIfUser;
       
    43 class MNifIfNotify;
       
    44 class CNifIfBase;
       
    45 class CNifAgentBase;
       
    46 class CSockSession;
       
    47 class CConnectionProvdBase;
       
    48 
       
    49 /**
       
    50 @internalTechnology
       
    51 */
       
    52 class MConnectionNotify;
       
    53 class CConnectionProvdBase;
       
    54 class Nif
       
    55 	{
       
    56 public:
       
    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);
       
    74 	};
       
    75 
       
    76 #ifdef _DEBUG
       
    77 /**
       
    78 Debug-only option level used to pass test-only option names onto PPP.
       
    79 @internalTechnology
       
    80 */
       
    81 const TUint KCOLLinkLayerTestLevel = 325;
       
    82 #endif
       
    83 
       
    84 /**
       
    85 @internalTechnology
       
    86 @released 9.1
       
    87 */
       
    88 const TUint KNifSessionSetConnectionAttempt = KConnInternalOptionBit|8;
       
    89 
       
    90 /**
       
    91 @internalTechnology
       
    92 @released 9.1
       
    93 */
       
    94 const TUint KNifSessionGetConnectionAttempt = KConnInternalOptionBit|9;
       
    95 
       
    96 /**
       
    97 @internalTechnology
       
    98 @released Argus
       
    99 */
       
   100 const TUint KNifSessionSetConnectionProvider = KConnInternalOptionBit|10;
       
   101 
       
   102 /**
       
   103 @internalTechnology
       
   104 @released
       
   105 @ref RConnection::Ioctl
       
   106 */
       
   107 const TUint KConnSetDhcpRawOptionData = KConnWriteUserDataBit|KConnReadUserDataBit|103;
       
   108 
       
   109 #endif // __NIFMAN_H__
       
   110 
       
   111 
       
   112