1 // Copyright (c) 2006-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @deprecated since v9.1. Functionality is replaced with commsdat. |
|
21 */ |
|
22 |
|
23 inline TBool TCommDbConnPref::operator==(const TCommDbConnPref& aPref) const |
|
24 /** |
|
25 Overloaded function for operator "==" |
|
26 |
|
27 @param aPref Reference to the class TCommDbConnPref |
|
28 @return ETrue if Successful if both the objects are equal else EFalse |
|
29 */ |
|
30 { |
|
31 return (Compare(aPref) == 0); |
|
32 } |
|
33 |
|
34 inline TBool TCommDbConnPref::operator!=(const TCommDbConnPref& aPref) const |
|
35 /** |
|
36 Overloaded function for operator "!=" |
|
37 |
|
38 @param aPref Reference to the class TCommDbConnPref |
|
39 @return Etrue if Successful if the objects are not equal else EFalse |
|
40 */ |
|
41 { |
|
42 return (Compare(aPref) != 0); |
|
43 } |
|
44 |
|
45 inline SCommDbConnPref* TCommDbConnPref::PrefPtr() const |
|
46 { |
|
47 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
|
48 return reinterpret_cast<SCommDbConnPref*>(UserPtr()); |
|
49 #else |
|
50 return (SCommDbConnPref*)UserPtr(); |
|
51 #endif |
|
52 } |
|
53 |
|
54 inline TCommDbConnPref& TCommDbConnPref::Cast(const TConnPref& aPref) |
|
55 /** |
|
56 Casts the TConnPref object to TCommDbConnPref |
|
57 |
|
58 @param aPref Connection preferences. |
|
59 @return Reference to TCommDbConnPref |
|
60 */ |
|
61 { |
|
62 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
|
63 // converting const TConnPref* to const TCommDbConnPref* and then casting away the constness |
|
64 return *const_cast<TCommDbConnPref*>((reinterpret_cast<const TCommDbConnPref*>(&aPref))); |
|
65 #else |
|
66 return *((TCommDbConnPref*)&aPref); |
|
67 #endif |
|
68 } |
|
69 |
|
70 inline SCommDbMultiConnPref* TCommDbMultiConnPref::PrefPtr() const |
|
71 { |
|
72 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
|
73 return reinterpret_cast<SCommDbMultiConnPref*>(UserPtr()); |
|
74 #else |
|
75 return (SCommDbMultiConnPref*)UserPtr(); |
|
76 #endif |
|
77 } |
|
78 |
|
79 inline TCommDbMultiConnPref& TCommDbMultiConnPref::Cast(const TConnPref& aPref) |
|
80 /** |
|
81 Casts the TConnPref object to TCommDbMultiConnPref |
|
82 |
|
83 @param aPref Connection preferences. |
|
84 @return Reference to TCommDbMultiConnPref |
|
85 */ |
|
86 { |
|
87 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
|
88 // converting const TConnPref* to const TCommDbMultiConnPref* and then casting away the constness |
|
89 return *const_cast<TCommDbMultiConnPref*>((reinterpret_cast<const TCommDbMultiConnPref*>(&aPref))); |
|
90 #else |
|
91 return *((TCommDbMultiConnPref*)&aPref); |
|
92 #endif |
|
93 } |
|