epoc32/include/es_enum.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 es_enum.inl
     1 // Copyright (c) 2002-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 inline TConnArgBase::TConnArgBase()
       
    17 : iVersion(0)
       
    18 /**
       
    19 Default Constructor
       
    20 
       
    21 */
       
    22 	{}
       
    23 
       
    24 inline TConnArgBase::TConnArgBase(TUint8 aVersion)
       
    25 : iVersion(aVersion)
       
    26 /**
       
    27 Constructor
       
    28 
       
    29 @param aVersion, Version number of the connection arguemt.
       
    30 */
       
    31 	{
       
    32 	iReserved[0]=0;
       
    33 	iReserved[1]=0;
       
    34 	iReserved[2]=0;
       
    35 	}
       
    36 
       
    37 inline TUint8 TConnArgBase::Version() const
       
    38 /**
       
    39 Responsible for retrieving the version number for the Socket Connection argument.
       
    40 
       
    41 @return version number of the connection arguemt.
       
    42 */
       
    43 	{
       
    44 	return iVersion;
       
    45 	}
       
    46 
       
    47 inline TConnectionInfo::TConnectionInfo()
       
    48 : TConnArgBase(KConnArgVersion1), iIapId(0), iNetId(0)
       
    49 /**
       
    50 Default Constructor
       
    51 
       
    52 */
       
    53 	{}
       
    54 
       
    55 inline TConnectionInfo::TConnectionInfo(TUint32 aIapId, TUint32 aNetId)
       
    56 : TConnArgBase(KConnArgVersion1), iIapId(aIapId), iNetId(aNetId)
       
    57 /**
       
    58 Constructor
       
    59 
       
    60 */
       
    61 	{}
       
    62 
       
    63 inline TConnectionInfo::TConnectionInfo(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId)
       
    64 : TConnArgBase(aVersion), iIapId(aIapId), iNetId(aNetId)
       
    65 /**
       
    66 Constructor
       
    67 
       
    68 */
       
    69 	{}
       
    70 
       
    71 inline TConnectionInfoV2::TConnectionInfoV2()
       
    72 : TConnectionInfo(KConnArgVersion2, 0, 0)
       
    73 /**
       
    74 Default Constructor
       
    75 
       
    76 */
       
    77 	{
       
    78 	}
       
    79 
       
    80 inline TConnectionInfoV2::TConnectionInfoV2(TUint32 aIapId, TUint32 aNetId, TConnectionType aConnectionType)
       
    81 : TConnectionInfo(KConnArgVersion2, aIapId, aNetId), iConnectionType(aConnectionType)
       
    82 /**
       
    83 Constructor
       
    84 
       
    85 @param aIapId
       
    86 @param aNetId
       
    87 @param aConnectionType
       
    88 */
       
    89 	{
       
    90 	}
       
    91 
       
    92 inline TConnectionInfoV2::TConnectionInfoV2(TUint8 aVersion, TUint32 aIapId, TUint32 aNetId, TConnectionType aConnectionType)
       
    93 : TConnectionInfo(aVersion, aIapId, aNetId), iConnectionType(aConnectionType)
       
    94 /**
       
    95 Constructor
       
    96 
       
    97 @param aVersion
       
    98 @param aIapId
       
    99 @param aNetId
       
   100 @param aConnectionType
       
   101 */
       
   102 	{
       
   103 	}
       
   104 
       
   105 inline TConnectionType TConnectionInfoV2::ConnectionType()
       
   106 /**
       
   107 Retrieve the type of socket connection.(version 2)
       
   108 
       
   109 @return type of connection.
       
   110 */
       
   111 	{
       
   112 	return iConnectionType;
       
   113 	}
       
   114 
       
   115 inline TSubConnectionInfo::TSubConnectionInfo()
       
   116 : TConnArgBase(KConnArgVersion2), iSubConnectionUniqueId(0), iConnectionType(EConnectionGeneric), iTimeStarted(0)
       
   117 /**
       
   118 Default Constructor
       
   119 */
       
   120 	{
       
   121 	}
       
   122 
       
   123 inline TConnectionClientInfo::TConnectionClientInfo()
       
   124 : iProcessId(), iUid(TUid::Null()), iThreadId()
       
   125 	{}
       
   126 
       
   127 inline  TConnectionClientInfo::TConnectionClientInfo(TUint aProcId, TUint aUid, TUint aThreadId)
       
   128 : iProcessId(aProcId), iUid(TUid::Uid(aUid)), iThreadId(aThreadId)
       
   129 	{}
       
   130 
       
   131 inline TConnectionSocketInfo::TConnectionSocketInfo()
       
   132 : iAddressFamily(KAFUnspec), iProtocol(0), iSourceAddress(), iDestinationAddress()
       
   133 	{}
       
   134 
       
   135 inline TConnectionEnumArg::TConnectionEnumArg()
       
   136 : TConnArgBase(KConnArgVersion1), iIndex(0), iCount(0)
       
   137 	{}
       
   138 
       
   139 inline TConnectionGetClientInfoArg::TConnectionGetClientInfoArg()
       
   140 : TConnArgBase(KConnArgVersion1), iIndex(0), iClientInfo()
       
   141 	{}
       
   142 
       
   143 inline TConnectionGetSocketInfoArg::TConnectionGetSocketInfoArg()
       
   144 : TConnArgBase(KConnArgVersion1), iIndex(0), iSocketInfo()
       
   145 	{}