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