1 // Copyright (c) 1997-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 inline TSockIOBufC::TSockIOBufC() : TPckgC<TSockIO>(iArgs)
20 inline TSockOpenBufC::TSockOpenBufC() : TPckgC<TSockOpen>(iArgs)
24 inline SSockAddr *TSockAddr::BasePtr() const
26 This function returns the end point to a connection.
28 @return socket address
30 { return (SSockAddr*)iBuf; }
33 inline TUint8 *TSockAddr::UserPtr() const
34 /** Gets an offset to place data after the base class data. This function is mainly
35 intended for use in derived classes.
36 @return Pointer to derived class intended data area */
37 { return (TUint8*)(BasePtr()+1); }
39 inline TUint16 ByteOrder::Swap16(TUint aVal)
41 Reverses the order of the bytes in a 16-bit value.
43 @param aVal The value to reverse.
44 @return The reversed value.
46 { return ByteOrder::Swap16((TUint16)aVal); }
48 inline TNameRecord::TNameRecord()
49 :iName(),iAddr(),iFlags(0)
51 Trivial C++ constructor. This sets the fields in the
52 class to suitable default values.
56 inline TNifProgress::TNifProgress() :iStage(0), iError(KErrNone)
58 It sets the iStage data member to 0 and the iError data member to KErrNone.
62 inline RSubConnection::TEventFilter::TEventFilter(TInt32 aEventGroupId, TUint32 aEventMask)
63 : iEventGroupUid(aEventGroupId), iEventMask(aEventMask)
67 inline TUint32 CSubConParameterFamily::Id()
69 Fetch the identity of the sub-connection parameter family
75 inline TAccessPointInfo::TAccessPointInfo(TUint aApId)
76 /** Initialises the object using the specified 32-bit long integer ID of the access point.
78 @param aApId The 32-bit long integer ID of the access point to initialise the object with. */
80 iAccessPointId = aApId;
83 inline TUint TAccessPointInfo::AccessPoint() const
84 /** Returns the 32-bit long integer ID of the access point.
86 @return The 32-bit long integer ID of the access point. */
88 return iAccessPointId;
91 inline void TAccessPointInfo::SetAccessPoint(TUint aAccessPoint)
92 /** Sets the 32-bit long integer ID of the access point.
94 @param aAccessPoint The 32-bit long integer ID of the access point. */
96 iAccessPointId = aAccessPoint;
99 inline TBool TAccessPointInfo::operator== (const TAccessPointInfo& aRhs) const
100 /** Compares the 32-bit long integer ID of the specified object with our own.
102 @param aRhs The TAccessPointInfo to compare.
103 @return A boolean value of ETrue if the TAccessPointInfo object has the same ID or false otherwise. */
105 return iAccessPointId == aRhs.iAccessPointId;