diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/commdbconnpref.inl --- a/epoc32/include/commdbconnpref.inl Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/commdbconnpref.inl Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,93 @@ -commdbconnpref.inl +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +/** + @file + @deprecated since v9.1. Functionality is replaced with commsdat. +*/ + +inline TBool TCommDbConnPref::operator==(const TCommDbConnPref& aPref) const +/** +Overloaded function for operator "==" + +@param aPref Reference to the class TCommDbConnPref +@return ETrue if Successful if both the objects are equal else EFalse +*/ + { + return (Compare(aPref) == 0); + } + +inline TBool TCommDbConnPref::operator!=(const TCommDbConnPref& aPref) const +/** +Overloaded function for operator "!=" + +@param aPref Reference to the class TCommDbConnPref +@return Etrue if Successful if the objects are not equal else EFalse +*/ + { + return (Compare(aPref) != 0); + } + +inline SCommDbConnPref* TCommDbConnPref::PrefPtr() const + { +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY + return reinterpret_cast(UserPtr()); +#else + return (SCommDbConnPref*)UserPtr(); +#endif + } + +inline TCommDbConnPref& TCommDbConnPref::Cast(const TConnPref& aPref) +/** +Casts the TConnPref object to TCommDbConnPref + +@param aPref Connection preferences. +@return Reference to TCommDbConnPref +*/ + { +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY + // converting const TConnPref* to const TCommDbConnPref* and then casting away the constness + return *const_cast((reinterpret_cast(&aPref))); +#else + return *((TCommDbConnPref*)&aPref); +#endif + } + +inline SCommDbMultiConnPref* TCommDbMultiConnPref::PrefPtr() const + { +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY + return reinterpret_cast(UserPtr()); +#else + return (SCommDbMultiConnPref*)UserPtr(); +#endif + } + +inline TCommDbMultiConnPref& TCommDbMultiConnPref::Cast(const TConnPref& aPref) +/** +Casts the TConnPref object to TCommDbMultiConnPref + +@param aPref Connection preferences. +@return Reference to TCommDbMultiConnPref +*/ + { +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY + // converting const TConnPref* to const TCommDbMultiConnPref* and then casting away the constness + return *const_cast((reinterpret_cast(&aPref))); +#else + return *((TCommDbMultiConnPref*)&aPref); +#endif + }