1 // Copyright (c) 2003-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.
23 #if !defined (__ES_ENUM_H__)
33 * Base class for many arguments to RConnection functions. Provides versioning information.
34 * @note Not intended for user instantiation
36 * @released since v7.0s
40 inline TConnArgBase();
41 inline TConnArgBase(const TDesC8& aConnectionInfo)
42 : iVersion(*((TUint8*)aConnectionInfo.Ptr()))
45 inline TUint8 Version() const;
48 inline TConnArgBase(TUint8 aVersion);
56 * Versioning information for connection arguments
58 * @released since v7.0s
60 const TUint8 KConnArgVersion1 = 1;
63 Versioning information for connection arguments
68 const TUint8 KConnArgVersion2 = 2;
70 class TConnectionInfo : public TConnArgBase
77 inline TConnectionInfo();
78 TConnectionInfo(const TDesC8& aConnectionInfo /*as passed to ::Bearer*/);
79 inline TConnectionInfo(TUint32 aIapId, TUint32 aNetId);
81 static TBool IsLocalBearer(const TDesC8& aConnectionInfo);
83 inline bool operator == (const TConnectionInfo& aRhs) const;
86 inline TConnectionInfo(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId);
93 const TUint8 KConnArgVersion3 = 3;
100 typedef TPckgBuf<TConnectionInfo> TConnectionInfoBuf;
106 The following classes are used with RConnection::AllInterfaceNotification() to receive information
107 about interfaces coming up and going down.
112 @released since v7.0s
114 enum TConnInterfaceState
120 class TInterfaceNotification
123 @released since v7.0s
127 TConnectionInfo iConnectionInfo;
128 TConnInterfaceState iState;
133 Types of events that can occur on a subconnection
138 enum TSubConnectionEventType
140 * Types of events that can occur on a subconnection
142 * @released since v7.0s
145 ESubConnectionOpened, //< Connection values 0-9999 for agent-based events
146 ESubConnectionClosed, //< Connection values 0-9999 for agent-based events
147 ESubConnectionQoSChanged = 1000 //< Connection values 10000-19999 for nif-based events
150 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
151 #include <es_enum_partner.h>
152 #include <es_enum_internal.h>
155 #include <es_enum.inl>
158 #endif // __ES_ENUM_H__