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
since 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:@360 |
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
Reference to TCommDbConnPref
const TConnPref & aPref | Connection preferences. |
IMPORT_C TInt | Compare | ( | const TCommDbConnPref & | aPref | ) | const [virtual] |
const TCommDbConnPref & aPref |
IMPORT_C void | SetDialogPreference | ( | TCommDbDialogPref | aDialogPref | ) |
TCommDbDialogPref aDialogPref |
IMPORT_C void | SetDirection | ( | TCommDbConnectionDirection | aDirection | ) |
TCommDbConnectionDirection aDirection |
TBool | operator!= | ( | const TCommDbConnPref & | aPref | ) | const [inline] |
Overloaded function for operator "!="
Etrue if Successful if the objects are not equal else EFalse
const TCommDbConnPref & aPref | Reference to the class TCommDbConnPref |
TBool | operator== | ( | const TCommDbConnPref & | aPref | ) | const [inline] |
Overloaded function for operator "=="
ETrue if Successful if both the objects are equal else EFalse
const TCommDbConnPref & aPref | Reference to the class TCommDbConnPref |