williamr@4
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@4
|
2 |
// All rights reserved.
|
williamr@4
|
3 |
// This component and the accompanying materials are made available
|
williamr@4
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
williamr@4
|
5 |
// which accompanies this distribution, and is available
|
williamr@4
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@4
|
7 |
//
|
williamr@4
|
8 |
// Initial Contributors:
|
williamr@4
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@4
|
10 |
//
|
williamr@4
|
11 |
// Contributors:
|
williamr@4
|
12 |
//
|
williamr@4
|
13 |
// Description:
|
williamr@4
|
14 |
// Interface Manager API
|
williamr@4
|
15 |
//
|
williamr@4
|
16 |
//
|
williamr@4
|
17 |
|
williamr@4
|
18 |
/**
|
williamr@4
|
19 |
@file nifman_internal.h
|
williamr@4
|
20 |
*/
|
williamr@4
|
21 |
|
williamr@4
|
22 |
|
williamr@4
|
23 |
#if !defined(__NIFMAN_INTERNAL_H__)
|
williamr@4
|
24 |
#define __NIFMAN_INTERNAL_H__
|
williamr@4
|
25 |
|
williamr@4
|
26 |
#include <es_prot.h>
|
williamr@4
|
27 |
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
|
williamr@4
|
28 |
#include <es_prot_internal.h>
|
williamr@4
|
29 |
#include <es_sock_partner.h>
|
williamr@4
|
30 |
#endif
|
williamr@4
|
31 |
|
williamr@4
|
32 |
|
williamr@4
|
33 |
/**
|
williamr@4
|
34 |
Static internal API class
|
williamr@4
|
35 |
@internalComponent
|
williamr@4
|
36 |
*/
|
williamr@4
|
37 |
enum TNifSocketState { ENifBuffers2048=-4, ENifBuffers1024, ENifBuffers512,
|
williamr@4
|
38 |
ENifSocketNull=-1,
|
williamr@4
|
39 |
ENifSocketCreated=0, ENifSocketOpen=3, ENifSocketConnected=4,
|
williamr@4
|
40 |
ENifSocketError=9 };
|
williamr@4
|
41 |
|
williamr@4
|
42 |
class MNifIfUser;
|
williamr@4
|
43 |
class MNifIfNotify;
|
williamr@4
|
44 |
class CNifIfBase;
|
williamr@4
|
45 |
class CNifAgentBase;
|
williamr@4
|
46 |
class CSockSession;
|
williamr@4
|
47 |
class CConnectionProvdBase;
|
williamr@4
|
48 |
|
williamr@4
|
49 |
/**
|
williamr@4
|
50 |
@internalTechnology
|
williamr@4
|
51 |
*/
|
williamr@4
|
52 |
class MConnectionNotify;
|
williamr@4
|
53 |
class CConnectionProvdBase;
|
williamr@4
|
54 |
class Nif
|
williamr@4
|
55 |
{
|
williamr@4
|
56 |
public:
|
williamr@4
|
57 |
/** Network protocol support */
|
williamr@4
|
58 |
IMPORT_C static void BindL(MNifIfUser& aUser, TAny* aId, TDes& aResult, const TDesC& aName=TPtrC(0,0));
|
williamr@4
|
59 |
IMPORT_C static void NetworkLayerClosed(MNifIfUser& aUser);
|
williamr@4
|
60 |
IMPORT_C static void StartL(TDes& aResult, const TDesC& aName=TPtrC());
|
williamr@4
|
61 |
IMPORT_C static void Stop(const TDesC& aName=TPtrC());
|
williamr@4
|
62 |
IMPORT_C static CNifIfBase* CreateInterfaceL(const TDesC& aName, MNifIfNotify* aNotify);
|
williamr@4
|
63 |
IMPORT_C static CNifAgentBase* CreateAgentL(const TDesC& aAgentName, const TBool aNewInstance = EFalse);
|
williamr@4
|
64 |
IMPORT_C static void CheckInstalledMBufManagerL();
|
williamr@4
|
65 |
IMPORT_C static CProtocolBase* IsProtocolLoaded(const TDesC& aName);
|
williamr@4
|
66 |
IMPORT_C static void CheckInstalledL();
|
williamr@4
|
67 |
IMPORT_C static TInt SetSocketState(TNifSocketState aState, CServProviderBase* aProvd);
|
williamr@4
|
68 |
IMPORT_C static void ProgressL(TNifProgress& aProgress, const TDesC& aName=TPtrC());
|
williamr@4
|
69 |
IMPORT_C static void Stop(TAny* aId, CNifIfBase* aIf=0);
|
williamr@4
|
70 |
IMPORT_C static void ProgressL(TNifProgress& aProgress, TAny* aId, CNifIfBase* aIf=0);
|
williamr@4
|
71 |
IMPORT_C static CConnectionProvdBase* NewConnectionL(MConnectionNotify* aConnection, TUint aId);
|
williamr@4
|
72 |
/** deprecated function */
|
williamr@4
|
73 |
IMPORT_C static CNifIfBase* CreateInterfaceL(const TDesC& aName);
|
williamr@4
|
74 |
};
|
williamr@4
|
75 |
|
williamr@4
|
76 |
#ifdef _DEBUG
|
williamr@4
|
77 |
/**
|
williamr@4
|
78 |
Debug-only option level used to pass test-only option names onto PPP.
|
williamr@4
|
79 |
@internalTechnology
|
williamr@4
|
80 |
*/
|
williamr@4
|
81 |
const TUint KCOLLinkLayerTestLevel = 325;
|
williamr@4
|
82 |
#endif
|
williamr@4
|
83 |
|
williamr@4
|
84 |
/**
|
williamr@4
|
85 |
@internalTechnology
|
williamr@4
|
86 |
@released 9.1
|
williamr@4
|
87 |
*/
|
williamr@4
|
88 |
const TUint KNifSessionSetConnectionAttempt = KConnInternalOptionBit|8;
|
williamr@4
|
89 |
|
williamr@4
|
90 |
/**
|
williamr@4
|
91 |
@internalTechnology
|
williamr@4
|
92 |
@released 9.1
|
williamr@4
|
93 |
*/
|
williamr@4
|
94 |
const TUint KNifSessionGetConnectionAttempt = KConnInternalOptionBit|9;
|
williamr@4
|
95 |
|
williamr@4
|
96 |
/**
|
williamr@4
|
97 |
@internalTechnology
|
williamr@4
|
98 |
@released Argus
|
williamr@4
|
99 |
*/
|
williamr@4
|
100 |
const TUint KNifSessionSetConnectionProvider = KConnInternalOptionBit|10;
|
williamr@4
|
101 |
|
williamr@4
|
102 |
/**
|
williamr@4
|
103 |
@internalTechnology
|
williamr@4
|
104 |
@released
|
williamr@4
|
105 |
@ref RConnection::Ioctl
|
williamr@4
|
106 |
*/
|
williamr@4
|
107 |
const TUint KConnSetDhcpRawOptionData = KConnWriteUserDataBit|KConnReadUserDataBit|103;
|
williamr@4
|
108 |
|
williamr@4
|
109 |
#endif // __NIFMAN_H__
|
williamr@4
|
110 |
|
williamr@4
|
111 |
|
williamr@4
|
112 |
|