1.1 --- a/epoc32/include/commdbconnpref.inl Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/commdbconnpref.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,93 @@
1.4 -commdbconnpref.inl
1.5 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +
1.21 +
1.22 +/**
1.23 + @file
1.24 + @deprecated since v9.1. Functionality is replaced with commsdat.
1.25 +*/
1.26 +
1.27 +inline TBool TCommDbConnPref::operator==(const TCommDbConnPref& aPref) const
1.28 +/**
1.29 +Overloaded function for operator "=="
1.30 +
1.31 +@param aPref Reference to the class TCommDbConnPref
1.32 +@return ETrue if Successful if both the objects are equal else EFalse
1.33 +*/
1.34 + {
1.35 + return (Compare(aPref) == 0);
1.36 + }
1.37 +
1.38 +inline TBool TCommDbConnPref::operator!=(const TCommDbConnPref& aPref) const
1.39 +/**
1.40 +Overloaded function for operator "!="
1.41 +
1.42 +@param aPref Reference to the class TCommDbConnPref
1.43 +@return Etrue if Successful if the objects are not equal else EFalse
1.44 +*/
1.45 + {
1.46 + return (Compare(aPref) != 0);
1.47 + }
1.48 +
1.49 +inline SCommDbConnPref* TCommDbConnPref::PrefPtr() const
1.50 + {
1.51 +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
1.52 + return reinterpret_cast<SCommDbConnPref*>(UserPtr());
1.53 +#else
1.54 + return (SCommDbConnPref*)UserPtr();
1.55 +#endif
1.56 + }
1.57 +
1.58 +inline TCommDbConnPref& TCommDbConnPref::Cast(const TConnPref& aPref)
1.59 +/**
1.60 +Casts the TConnPref object to TCommDbConnPref
1.61 +
1.62 +@param aPref Connection preferences.
1.63 +@return Reference to TCommDbConnPref
1.64 +*/
1.65 + {
1.66 +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
1.67 + // converting const TConnPref* to const TCommDbConnPref* and then casting away the constness
1.68 + return *const_cast<TCommDbConnPref*>((reinterpret_cast<const TCommDbConnPref*>(&aPref)));
1.69 +#else
1.70 + return *((TCommDbConnPref*)&aPref);
1.71 +#endif
1.72 + }
1.73 +
1.74 +inline SCommDbMultiConnPref* TCommDbMultiConnPref::PrefPtr() const
1.75 + {
1.76 +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
1.77 + return reinterpret_cast<SCommDbMultiConnPref*>(UserPtr());
1.78 +#else
1.79 + return (SCommDbMultiConnPref*)UserPtr();
1.80 +#endif
1.81 + }
1.82 +
1.83 +inline TCommDbMultiConnPref& TCommDbMultiConnPref::Cast(const TConnPref& aPref)
1.84 +/**
1.85 +Casts the TConnPref object to TCommDbMultiConnPref
1.86 +
1.87 +@param aPref Connection preferences.
1.88 +@return Reference to TCommDbMultiConnPref
1.89 +*/
1.90 + {
1.91 +#ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
1.92 + // converting const TConnPref* to const TCommDbMultiConnPref* and then casting away the constness
1.93 + return *const_cast<TCommDbMultiConnPref*>((reinterpret_cast<const TCommDbMultiConnPref*>(&aPref)));
1.94 +#else
1.95 + return *((TCommDbMultiConnPref*)&aPref);
1.96 +#endif
1.97 + }