epoc32/include/nifman_internal.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/nifman_internal.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,112 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Interface Manager API
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +/**
    1.22 + @file nifman_internal.h
    1.23 +*/
    1.24 +
    1.25 +
    1.26 +#if !defined(__NIFMAN_INTERNAL_H__)
    1.27 +#define __NIFMAN_INTERNAL_H__
    1.28 +
    1.29 +#include <es_prot.h>
    1.30 +#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    1.31 +#include <es_prot_internal.h>
    1.32 +#include <es_sock_partner.h>
    1.33 +#endif
    1.34 +
    1.35 +
    1.36 +/**
    1.37 +Static internal API class
    1.38 +@internalComponent
    1.39 +*/
    1.40 +enum TNifSocketState { ENifBuffers2048=-4, ENifBuffers1024, ENifBuffers512, 
    1.41 +					   ENifSocketNull=-1,
    1.42 +                       ENifSocketCreated=0, ENifSocketOpen=3, ENifSocketConnected=4,
    1.43 +					   ENifSocketError=9 };
    1.44 +
    1.45 +class MNifIfUser;
    1.46 +class MNifIfNotify;
    1.47 +class CNifIfBase;
    1.48 +class CNifAgentBase;
    1.49 +class CSockSession;
    1.50 +class CConnectionProvdBase;
    1.51 +
    1.52 +/**
    1.53 +@internalTechnology
    1.54 +*/
    1.55 +class MConnectionNotify;
    1.56 +class CConnectionProvdBase;
    1.57 +class Nif
    1.58 +	{
    1.59 +public:
    1.60 +	/** Network protocol support */
    1.61 +	IMPORT_C static void BindL(MNifIfUser& aUser, TAny* aId, TDes& aResult, const TDesC& aName=TPtrC(0,0));
    1.62 +	IMPORT_C static void NetworkLayerClosed(MNifIfUser& aUser);
    1.63 +	IMPORT_C static void StartL(TDes& aResult, const TDesC& aName=TPtrC());
    1.64 +	IMPORT_C static void Stop(const TDesC& aName=TPtrC());
    1.65 +	IMPORT_C static CNifIfBase* CreateInterfaceL(const TDesC& aName, MNifIfNotify* aNotify);
    1.66 +	IMPORT_C static CNifAgentBase* CreateAgentL(const TDesC& aAgentName, const TBool aNewInstance = EFalse);
    1.67 +	IMPORT_C static void CheckInstalledMBufManagerL();
    1.68 +	IMPORT_C static CProtocolBase* IsProtocolLoaded(const TDesC& aName);
    1.69 +	IMPORT_C static void CheckInstalledL();
    1.70 +	IMPORT_C static TInt SetSocketState(TNifSocketState aState, CServProviderBase* aProvd);
    1.71 +	IMPORT_C static void ProgressL(TNifProgress& aProgress, const TDesC& aName=TPtrC());
    1.72 +	IMPORT_C static void Stop(TAny* aId, CNifIfBase* aIf=0);
    1.73 +	IMPORT_C static void ProgressL(TNifProgress& aProgress, TAny* aId, CNifIfBase* aIf=0);
    1.74 +	IMPORT_C static CConnectionProvdBase* NewConnectionL(MConnectionNotify* aConnection, TUint aId);
    1.75 +	/** deprecated function */
    1.76 +	IMPORT_C static CNifIfBase* CreateInterfaceL(const TDesC& aName);
    1.77 +	};
    1.78 +
    1.79 +#ifdef _DEBUG
    1.80 +/**
    1.81 +Debug-only option level used to pass test-only option names onto PPP.
    1.82 +@internalTechnology
    1.83 +*/
    1.84 +const TUint KCOLLinkLayerTestLevel = 325;
    1.85 +#endif
    1.86 +
    1.87 +/**
    1.88 +@internalTechnology
    1.89 +@released 9.1
    1.90 +*/
    1.91 +const TUint KNifSessionSetConnectionAttempt = KConnInternalOptionBit|8;
    1.92 +
    1.93 +/**
    1.94 +@internalTechnology
    1.95 +@released 9.1
    1.96 +*/
    1.97 +const TUint KNifSessionGetConnectionAttempt = KConnInternalOptionBit|9;
    1.98 +
    1.99 +/**
   1.100 +@internalTechnology
   1.101 +@released Argus
   1.102 +*/
   1.103 +const TUint KNifSessionSetConnectionProvider = KConnInternalOptionBit|10;
   1.104 +
   1.105 +/**
   1.106 +@internalTechnology
   1.107 +@released
   1.108 +@ref RConnection::Ioctl
   1.109 +*/
   1.110 +const TUint KConnSetDhcpRawOptionData = KConnWriteUserDataBit|KConnReadUserDataBit|103;
   1.111 +
   1.112 +#endif // __NIFMAN_H__
   1.113 +
   1.114 +
   1.115 +