class TCommDbConnPref : public TConnPref |
Connection preferences which override the contents of the ConnectionPreferences tables in CommsDat. The only mandatory field is IAP.
An Internet Access Point(IAP) represents a IP bound bearer and a set of parameters on that bearer, which the device can use to make a connection to the Internet.
A list of available IAPs and Networks can be retrieved from CommsDat using CommsDat::CCDIAPRecord and CCDNetworkRecord.
RConnection conn; User::LeaveIfError(conn.Open(sockSvr)); CleanupClosePushL(conn); TCommDbConnPref prefs; prefs.SetIapId(3); TInt error = conn.Start(prefs);
CommsDat::CCDNetworkRecord CommsDat::CCDIAPRecord TCommDbDialogPref TCommDbConnectionDirection TCommDbBearer RConnection::Startsince v7.0s
Public Member Functions | |
---|---|
TCommDbConnPref() | |
IMPORT_C TUint32 | BearerSet() |
TCommDbConnPref & | Cast(const TConnPref &) |
IMPORT_C TInt | Compare(const TCommDbConnPref &) |
IMPORT_C TCommDbDialogPref | DialogPreference() |
IMPORT_C TCommDbConnectionDirection | Direction() |
IMPORT_C TUint32 | IapId() |
IMPORT_C TUint32 | NetId() |
SCommDbConnPref * | PrefPtr() |
IMPORT_C void | SetBearerSet(TUint32) |
IMPORT_C void | SetDialogPreference(TCommDbDialogPref) |
IMPORT_C void | SetDirection(TCommDbConnectionDirection) |
IMPORT_C void | SetIapId(TUint32) |
IMPORT_C void | SetNetId(TUint32) |
IMPORT_C TVersion | Version() |
TBool | operator!=(const TCommDbConnPref &) |
TBool | operator==(const TCommDbConnPref &) |
Inherited Enumerations | |
---|---|
TConnPref:@67 |
Public Attributes | |
---|---|
const TInt16 | KBuildVersionNumber |
const TInt8 | KMajorVersionNumber |
const TInt8 | KMinorVersionNumber |
Inherited Attributes | |
---|---|
TBuf8< KMaxConnPrefSize >::iBuf | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
TCommDbConnPref & | Cast | ( | const TConnPref & | aPref | ) | [static, inline] |
Casts the TConnPref object to TCommDbConnPref
const TConnPref & aPref | Connection preferences. |
IMPORT_C TInt | Compare | ( | const TCommDbConnPref & | aPref | ) | const [virtual] |
Compares two sets of connection preferences The returned value gives a measure of the differences between the preferences If either value has not been set then the comparison is not made
const TCommDbConnPref & aPref | The connection preferences to compare |
IMPORT_C TCommDbDialogPref | DialogPreference | ( | ) | const |
Retrieves the dialog preference to use in this connection
IMPORT_C TUint32 | NetId | ( | ) | const |
Retrieves the CommDb ID of the Network Id to use in this connection
IMPORT_C void | SetBearerSet | ( | TUint32 | aBearerSet | ) |
Sets the bearer set applicable for the connection
TUint32 aBearerSet | The bearer set applicable for the connection |
IMPORT_C void | SetDialogPreference | ( | TCommDbDialogPref | aDialogPref | ) |
Sets the dialog preference to use in this connection
TCommDbDialogPref aDialogPref | Dialog preference to use in this connection |
IMPORT_C void | SetDirection | ( | TCommDbConnectionDirection | aDirection | ) |
Sets the connection direction
TCommDbConnectionDirection aDirection | Connection direction |
IMPORT_C void | SetIapId | ( | TUint32 | aIapId | ) |
Sets the CommDb ID of the IAP to use for this connection
TUint32 aIapId | The IAP Id to be set |
IMPORT_C void | SetNetId | ( | TUint32 | aNetId | ) |
Sets the CommDb ID of the Network Id to use in this connection
TUint32 aNetId | Network Id to use in this connection |
TBool | operator!= | ( | const TCommDbConnPref & | aPref | ) | const [inline] |
Overloaded function for operator "!="
const TCommDbConnPref & aPref | Reference to the class TCommDbConnPref |
TBool | operator== | ( | const TCommDbConnPref & | aPref | ) | const [inline] |
Overloaded function for operator "=="
const TCommDbConnPref & aPref | Reference to the class TCommDbConnPref |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.