1.1 --- a/epoc32/include/es_enum.inl Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/es_enum.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,145 @@
1.4 -es_enum.inl
1.5 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +inline TConnArgBase::TConnArgBase()
1.21 +: iVersion(0)
1.22 +/**
1.23 +Default Constructor
1.24 +
1.25 +*/
1.26 + {}
1.27 +
1.28 +inline TConnArgBase::TConnArgBase(TUint8 aVersion)
1.29 +: iVersion(aVersion)
1.30 +/**
1.31 +Constructor
1.32 +
1.33 +@param aVersion, Version number of the connection arguemt.
1.34 +*/
1.35 + {
1.36 + iReserved[0]=0;
1.37 + iReserved[1]=0;
1.38 + iReserved[2]=0;
1.39 + }
1.40 +
1.41 +inline TUint8 TConnArgBase::Version() const
1.42 +/**
1.43 +Responsible for retrieving the version number for the Socket Connection argument.
1.44 +
1.45 +@return version number of the connection arguemt.
1.46 +*/
1.47 + {
1.48 + return iVersion;
1.49 + }
1.50 +
1.51 +inline TConnectionInfo::TConnectionInfo()
1.52 +: TConnArgBase(KConnArgVersion1), iIapId(0), iNetId(0)
1.53 +/**
1.54 +Default Constructor
1.55 +
1.56 +*/
1.57 + {}
1.58 +
1.59 +inline TConnectionInfo::TConnectionInfo(TUint32 aIapId, TUint32 aNetId)
1.60 +: TConnArgBase(KConnArgVersion1), iIapId(aIapId), iNetId(aNetId)
1.61 +/**
1.62 +Constructor
1.63 +
1.64 +*/
1.65 + {}
1.66 +
1.67 +inline TConnectionInfo::TConnectionInfo(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId)
1.68 +: TConnArgBase(aVersion), iIapId(aIapId), iNetId(aNetId)
1.69 +/**
1.70 +Constructor
1.71 +
1.72 +*/
1.73 + {}
1.74 +
1.75 +inline TConnectionInfoV2::TConnectionInfoV2()
1.76 +: TConnectionInfo(KConnArgVersion2, 0, 0)
1.77 +/**
1.78 +Default Constructor
1.79 +
1.80 +*/
1.81 + {
1.82 + }
1.83 +
1.84 +inline TConnectionInfoV2::TConnectionInfoV2(TUint32 aIapId, TUint32 aNetId, TConnectionType aConnectionType)
1.85 +: TConnectionInfo(KConnArgVersion2, aIapId, aNetId), iConnectionType(aConnectionType)
1.86 +/**
1.87 +Constructor
1.88 +
1.89 +@param aIapId
1.90 +@param aNetId
1.91 +@param aConnectionType
1.92 +*/
1.93 + {
1.94 + }
1.95 +
1.96 +inline TConnectionInfoV2::TConnectionInfoV2(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId, TConnectionType aConnectionType)
1.97 +: TConnectionInfo(aVersion, aIapId, aNetId), iConnectionType(aConnectionType)
1.98 +/**
1.99 +Constructor
1.100 +
1.101 +@param aVersion
1.102 +@param aIapId
1.103 +@param aNetId
1.104 +@param aConnectionType
1.105 +*/
1.106 + {
1.107 + }
1.108 +
1.109 +inline TConnectionType TConnectionInfoV2::ConnectionType()
1.110 +/**
1.111 +Retrieve the type of socket connection.(version 2)
1.112 +
1.113 +@return type of connection.
1.114 +*/
1.115 + {
1.116 + return iConnectionType;
1.117 + }
1.118 +
1.119 +inline TSubConnectionInfo::TSubConnectionInfo()
1.120 +: TConnArgBase(KConnArgVersion2), iSubConnectionUniqueId(0), iConnectionType(EConnectionGeneric), iTimeStarted(0)
1.121 +/**
1.122 +Default Constructor
1.123 +*/
1.124 + {
1.125 + }
1.126 +
1.127 +inline TConnectionClientInfo::TConnectionClientInfo()
1.128 +: iProcessId(), iUid(TUid::Null()), iThreadId()
1.129 + {}
1.130 +
1.131 +inline TConnectionClientInfo::TConnectionClientInfo(TUint aProcId, TUint aUid, TUint aThreadId)
1.132 +: iProcessId(aProcId), iUid(TUid::Uid(aUid)), iThreadId(aThreadId)
1.133 + {}
1.134 +
1.135 +inline TConnectionSocketInfo::TConnectionSocketInfo()
1.136 +: iAddressFamily(KAFUnspec), iProtocol(0), iSourceAddress(), iDestinationAddress()
1.137 + {}
1.138 +
1.139 +inline TConnectionEnumArg::TConnectionEnumArg()
1.140 +: TConnArgBase(KConnArgVersion1), iIndex(0), iCount(0)
1.141 + {}
1.142 +
1.143 +inline TConnectionGetClientInfoArg::TConnectionGetClientInfoArg()
1.144 +: TConnArgBase(KConnArgVersion1), iIndex(0), iClientInfo()
1.145 + {}
1.146 +
1.147 +inline TConnectionGetSocketInfoArg::TConnectionGetSocketInfoArg()
1.148 +: TConnArgBase(KConnArgVersion1), iIndex(0), iSocketInfo()
1.149 + {}