williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: inline TSockIOBufC::TSockIOBufC() : TPckgC(iArgs) williamr@2: williamr@2: {} williamr@2: williamr@2: inline TSockOpenBufC::TSockOpenBufC() : TPckgC(iArgs) williamr@2: williamr@2: {} williamr@2: williamr@2: inline SSockAddr *TSockAddr::BasePtr() const williamr@2: /** williamr@2: This function returns the end point to a connection. williamr@2: williamr@2: @return socket address williamr@2: */ williamr@2: { return (SSockAddr*)iBuf; } williamr@2: williamr@2: williamr@2: inline TUint8 *TSockAddr::UserPtr() const williamr@2: /** Gets an offset to place data after the base class data. This function is mainly williamr@2: intended for use in derived classes. williamr@2: @return Pointer to derived class intended data area */ williamr@2: { return (TUint8*)(BasePtr()+1); } williamr@2: williamr@2: inline TUint16 ByteOrder::Swap16(TUint aVal) williamr@2: /** williamr@2: Reverses the order of the bytes in a 16-bit value. williamr@2: williamr@2: @param aVal The value to reverse. williamr@2: @return The reversed value. williamr@2: */ williamr@2: { return ByteOrder::Swap16((TUint16)aVal); } williamr@2: williamr@2: inline TNameRecord::TNameRecord() williamr@2: :iName(),iAddr(),iFlags(0) williamr@2: /** williamr@2: Trivial C++ constructor. This sets the fields in the williamr@2: class to suitable default values. williamr@2: */ williamr@2: {} williamr@2: williamr@2: inline TNifProgress::TNifProgress() :iStage(0), iError(KErrNone) williamr@2: /** williamr@2: It sets the iStage data member to 0 and the iError data member to KErrNone. williamr@2: */ williamr@2: {} williamr@2: williamr@2: inline RSubConnection::TEventFilter::TEventFilter(TInt32 aEventGroupId, TUint32 aEventMask) williamr@2: : iEventGroupUid(aEventGroupId), iEventMask(aEventMask) williamr@2: { williamr@2: } williamr@2: williamr@2: inline TUint32 CSubConParameterFamily::Id() williamr@2: /** williamr@2: Fetch the identity of the sub-connection parameter family williamr@2: */ williamr@2: { williamr@2: return iFamilyId; williamr@2: } williamr@2: williamr@2: inline TAccessPointInfo::TAccessPointInfo(TUint aApId) williamr@2: /** Initialises the object using the specified 32-bit long integer ID of the access point. williamr@2: williamr@2: @param aApId The 32-bit long integer ID of the access point to initialise the object with. */ williamr@2: { williamr@2: iAccessPointId = aApId; williamr@2: } williamr@2: williamr@2: inline TUint TAccessPointInfo::AccessPoint() const williamr@2: /** Returns the 32-bit long integer ID of the access point. williamr@2: williamr@2: @return The 32-bit long integer ID of the access point. */ williamr@2: { williamr@2: return iAccessPointId; williamr@2: } williamr@2: williamr@2: inline void TAccessPointInfo::SetAccessPoint(TUint aAccessPoint) williamr@2: /** Sets the 32-bit long integer ID of the access point. williamr@2: williamr@2: @param aAccessPoint The 32-bit long integer ID of the access point. */ williamr@2: { williamr@2: iAccessPointId = aAccessPoint; williamr@2: } williamr@2: williamr@2: inline TBool TAccessPointInfo::operator== (const TAccessPointInfo& aRhs) const williamr@2: /** Compares the 32-bit long integer ID of the specified object with our own. williamr@2: williamr@2: @param aRhs The TAccessPointInfo to compare. williamr@2: @return A boolean value of ETrue if the TAccessPointInfo object has the same ID or false otherwise. */ williamr@2: { williamr@2: return iAccessPointId == aRhs.iAccessPointId; williamr@2: }