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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 @deprecated since v9.1. Functionality is replaced with commsdat.
23 #if !(defined COMMDBCONNPREF_H)
24 #define COMMDBCONNPREF_H
30 Constant for storing Major Version Number
33 const TInt8 KMajorVersionNumber = 8;
36 Constant for storing Minor Version Number
38 const TInt8 KMinorVersionNumber = 0;
41 Constant for storing Build Version Number
43 const TInt16 KBuildVersionNumber = 1;
49 struct SCommDbConnPref
53 TCommDbDialogPref iDialogPref;
54 TCommDbConnectionDirection iDirection;
58 class TCommDbConnPref : public TConnPref
64 friend class TCommDbMultiConnPref;
66 IMPORT_C TCommDbConnPref();
67 IMPORT_C static TVersion Version();
69 IMPORT_C void SetIapId(TUint32 aIapId);
70 IMPORT_C TUint32 IapId() const;
72 IMPORT_C void SetNetId(TUint32 aNetId);
73 IMPORT_C TUint32 NetId() const;
75 IMPORT_C void SetDialogPreference(TCommDbDialogPref aDialogPref);
76 IMPORT_C TCommDbDialogPref DialogPreference() const;
78 IMPORT_C void SetDirection(TCommDbConnectionDirection aDirection);
79 IMPORT_C TCommDbConnectionDirection Direction() const;
81 IMPORT_C void SetBearerSet(TUint32 aBearerSet);
82 IMPORT_C TUint32 BearerSet() const;
84 IMPORT_C virtual TInt Compare(const TCommDbConnPref& aPref) const;
85 inline TBool operator==(const TCommDbConnPref& aPref) const;
86 inline TBool operator!=(const TCommDbConnPref& aPref) const;
88 inline static TCommDbConnPref& Cast(const TConnPref& aPref);
91 inline SCommDbConnPref* PrefPtr() const;
97 const TInt KMaxMultiConnPrefCount = 2;
102 struct SCommDbMultiConnPref
105 struct SCommDbConnPref iPrefs[KMaxMultiConnPrefCount];
108 class TCommDbMultiConnPref : public TConnPref
111 @released since v7.0s
115 IMPORT_C TCommDbMultiConnPref();
116 IMPORT_C static TVersion Version();
118 IMPORT_C TInt SetPreference(TInt aIndex, const TCommDbConnPref& aPref);
119 IMPORT_C TInt GetPreference(TInt aIndex, TCommDbConnPref& aPref);
121 IMPORT_C void SetConnectionAttempts(TInt aNumAttempts);
122 IMPORT_C TInt ConnectionAttempts();
124 inline static TCommDbMultiConnPref& Cast(const TConnPref& aPref);
127 inline struct SCommDbMultiConnPref* PrefPtr() const;
130 #include <commdbconnpref.inl>