|
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 "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". |
|
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 bool TConnectionInfo::operator == (const TConnectionInfo& aRhs) const |
|
72 /* |
|
73 Equality operator |
|
74 */ |
|
75 { |
|
76 return (iIapId == aRhs.iIapId && iNetId == aRhs.iNetId); |
|
77 } |
|
78 |
|
79 |
|
80 |