TCommDbConnPref Class Reference

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

Nested Classes and Structures

Public Member Functions
TCommDbConnPref()
IMPORT_C TUint32BearerSet()
TCommDbConnPref &Cast(const TConnPref &)
IMPORT_C TIntCompare(const TCommDbConnPref &)
IMPORT_C TCommDbDialogPrefDialogPreference()
IMPORT_C TCommDbConnectionDirectionDirection()
IMPORT_C TUint32IapId()
IMPORT_C TUint32NetId()
SCommDbConnPref *PrefPtr()
IMPORT_C voidSetBearerSet(TUint32)
IMPORT_C voidSetDialogPreference(TCommDbDialogPref)
IMPORT_C voidSetDirection(TCommDbConnectionDirection)
IMPORT_C voidSetIapId(TUint32)
IMPORT_C voidSetNetId(TUint32)
IMPORT_C TVersionVersion()
TBool operator!=(const TCommDbConnPref &)
TBool operator==(const TCommDbConnPref &)
Inherited Functions
TBuf8< KMaxConnPrefSize >::TBuf8()
TBuf8< KMaxConnPrefSize >::TBuf8(TInt)
TBuf8< KMaxConnPrefSize >::TBuf8(const TDesC8 &)
TBuf8< KMaxConnPrefSize >::TBuf8(const TUint8 *)
TBuf8< KMaxConnPrefSize >::operator=(const TBuf8< S > &)
TBuf8< KMaxConnPrefSize >::operator=(const TDesC8 &)
TBuf8< KMaxConnPrefSize >::operator=(const TUint8 *)
TBufBase8::TBufBase8(TInt)
TBufBase8::TBufBase8(TInt,TInt)
TBufBase8::TBufBase8(const TDesC8 &,TInt)
TBufBase8::TBufBase8(const TUint8 *,TInt)
TConnPref::ExtensionId()const
TConnPref::GetUserLen()
TConnPref::SetExtensionId(TInt)
TConnPref::SetUserLen(TInt)
TConnPref::TConnPref()
TConnPref::TConnPref(TInt)
TConnPref::UserPtr()const
TDes8::Append(TChar)
TDes8::Append(const TDesC16 &)
TDes8::Append(const TDesC8 &)
TDes8::Append(const TUint8 *,TInt)
TDes8::AppendFill(TChar,TInt)
TDes8::AppendFormat(TRefByValue< const TDesC8 >,...)
TDes8::AppendFormat(TRefByValue< const TDesC8 >,TDes8Overflow *,...)
TDes8::AppendFormatList(const TDesC8 &,VA_LIST,TDes8Overflow *)
TDes8::AppendJustify(const TDesC8 &,TInt,TAlign,TChar)
TDes8::AppendJustify(const TDesC8 &,TInt,TInt,TAlign,TChar)
TDes8::AppendJustify(const TUint8 *,TInt,TAlign,TChar)
TDes8::AppendJustify(const TUint8 *,TInt,TInt,TAlign,TChar)
TDes8::AppendNum(TInt64)
TDes8::AppendNum(TReal,const TRealFormat &)
TDes8::AppendNum(TUint64,TRadix)
TDes8::AppendNumFixedWidth(TUint,TRadix,TInt)
TDes8::AppendNumFixedWidthUC(TUint,TRadix,TInt)
TDes8::AppendNumUC(TUint64,TRadix)
TDes8::Capitalize()
TDes8::Collapse()
TDes8::Collate()
TDes8::Copy(const TDesC16 &)
TDes8::Copy(const TDesC8 &)
TDes8::Copy(const TUint8 *)
TDes8::Copy(const TUint8 *,TInt)
TDes8::CopyC(const TDesC8 &)
TDes8::CopyCP(const TDesC8 &)
TDes8::CopyF(const TDesC8 &)
TDes8::CopyLC(const TDesC8 &)
TDes8::CopyUC(const TDesC8 &)
TDes8::Delete(TInt,TInt)
TDes8::DoAppendNum(TUint64,TRadix,TUint,TInt)
TDes8::DoPadAppendNum(TInt,TInt,const TUint8 *)
TDes8::Expand()
TDes8::Fill(TChar)
TDes8::Fill(TChar,TInt)
TDes8::FillZ()
TDes8::FillZ(TInt)
TDes8::Fold()
TDes8::Format(TRefByValue< const TDesC8 >,...)
TDes8::FormatList(const TDesC8 &,VA_LIST)
TDes8::Insert(TInt,const TDesC8 &)
TDes8::Justify(const TDesC8 &,TInt,TAlign,TChar)
TDes8::LeftTPtr(TInt)const
TDes8::LowerCase()
TDes8::MaxLength()const
TDes8::MaxSize()const
TDes8::MidTPtr(TInt)const
TDes8::MidTPtr(TInt,TInt)const
TDes8::Num(TInt64)
TDes8::Num(TReal,const TRealFormat &)
TDes8::Num(TUint64,TRadix)
TDes8::NumFixedWidth(TUint,TRadix,TInt)
TDes8::NumFixedWidthUC(TUint,TRadix,TInt)
TDes8::NumUC(TUint64,TRadix)
TDes8::PtrZ()
TDes8::Repeat(const TDesC8 &)
TDes8::Repeat(const TUint8 *,TInt)
TDes8::Replace(TInt,TInt,const TDesC8 &)
TDes8::RightTPtr(TInt)const
TDes8::SetLength(TInt)
TDes8::SetMax()
TDes8::Swap(TDes8 &)
TDes8::TDes8()
TDes8::TDes8(TInt,TInt,TInt)
TDes8::Trim()
TDes8::TrimAll()
TDes8::TrimLeft()
TDes8::TrimRight()
TDes8::UpperCase()
TDes8::WPtr()const
TDes8::Zero()
TDes8::ZeroTerminate()
TDes8::operator+=(const TDesC8 &)
TDes8::operator=(const TDes8 &)
TDes8::operator[](TInt)
TDes8::operator[](TInt)const
TDesC8::Alloc()const
TDesC8::AllocL()const
TDesC8::AllocLC()const
TDesC8::AtC(TInt)const
TDesC8::Compare(const TDesC8 &)const
TDesC8::CompareC(const TDesC8 &)const
TDesC8::CompareF(const TDesC8 &)const
TDesC8::DoSetLength(TInt)
TDesC8::Find(const TDesC8 &)const
TDesC8::Find(const TUint8 *,TInt)const
TDesC8::FindC(const TDesC8 &)const
TDesC8::FindC(const TUint8 *,TInt)const
TDesC8::FindF(const TDesC8 &)const
TDesC8::FindF(const TUint8 *,TInt)const
TDesC8::Left(TInt)const
TDesC8::Length()const
TDesC8::Locate(TChar)const
TDesC8::LocateF(TChar)const
TDesC8::LocateReverse(TChar)const
TDesC8::LocateReverseF(TChar)const
TDesC8::Match(const TDesC8 &)const
TDesC8::MatchC(const TDesC8 &)const
TDesC8::MatchF(const TDesC8 &)const
TDesC8::Mid(TInt)const
TDesC8::Mid(TInt,TInt)const
TDesC8::Ptr()const
TDesC8::Right(TInt)const
TDesC8::Size()const
TDesC8::TDesC8()
TDesC8::TDesC8(TInt,TInt)
TDesC8::Type()const
TDesC8::operator!=(const TDesC8 &)const
TDesC8::operator<(const TDesC8 &)const
TDesC8::operator<=(const TDesC8 &)const
TDesC8::operator==(const TDesC8 &)const
TDesC8::operator>(const TDesC8 &)const
TDesC8::operator>=(const TDesC8 &)const
Inherited Enumerations
TConnPref:@67
Public Attributes
const TInt16KBuildVersionNumber
const TInt8KMajorVersionNumber
const TInt8KMinorVersionNumber
Inherited Attributes
TBuf8< KMaxConnPrefSize >::iBuf
TDes8::__DECLARE_TEST
TDes8::iMaxLength

Constructor & Destructor Documentation

TCommDbConnPref()

IMPORT_CTCommDbConnPref()

Constructor

Member Functions Documentation

BearerSet()

IMPORT_C TUint32BearerSet()const

Retrieves the bearer set applicable for the connection

Cast(const TConnPref &)

TCommDbConnPref &Cast(const TConnPref &aPref)[static, inline]

Casts the TConnPref object to TCommDbConnPref

Parameters

const TConnPref & aPrefConnection preferences.

Compare(const TCommDbConnPref &)

IMPORT_C TIntCompare(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

Parameters

const TCommDbConnPref & aPrefThe connection preferences to compare

DialogPreference()

IMPORT_C TCommDbDialogPrefDialogPreference()const

Retrieves the dialog preference to use in this connection

Direction()

IMPORT_C TCommDbConnectionDirectionDirection()const

Retrieves the connection direction

IapId()

IMPORT_C TUint32IapId()const

Retrieves the CommDb ID of the IAP to use in this connection

NetId()

IMPORT_C TUint32NetId()const

Retrieves the CommDb ID of the Network Id to use in this connection

PrefPtr()

SCommDbConnPref *PrefPtr()const [inline]

SetBearerSet(TUint32)

IMPORT_C voidSetBearerSet(TUint32aBearerSet)

Sets the bearer set applicable for the connection

Parameters

TUint32 aBearerSetThe bearer set applicable for the connection

SetDialogPreference(TCommDbDialogPref)

IMPORT_C voidSetDialogPreference(TCommDbDialogPrefaDialogPref)

Sets the dialog preference to use in this connection

Parameters

TCommDbDialogPref aDialogPrefDialog preference to use in this connection

SetDirection(TCommDbConnectionDirection)

IMPORT_C voidSetDirection(TCommDbConnectionDirectionaDirection)

Sets the connection direction

Parameters

TCommDbConnectionDirection aDirectionConnection direction

SetIapId(TUint32)

IMPORT_C voidSetIapId(TUint32aIapId)

Sets the CommDb ID of the IAP to use for this connection

Parameters

TUint32 aIapIdThe IAP Id to be set

SetNetId(TUint32)

IMPORT_C voidSetNetId(TUint32aNetId)

Sets the CommDb ID of the Network Id to use in this connection

Parameters

TUint32 aNetIdNetwork Id to use in this connection

Version()

IMPORT_C TVersionVersion()[static]

Returns the version number of this class

operator!=(const TCommDbConnPref &)

TBool operator!=(const TCommDbConnPref &aPref)const [inline]

Overloaded function for operator "!="

Parameters

const TCommDbConnPref & aPrefReference to the class TCommDbConnPref

operator==(const TCommDbConnPref &)

TBool operator==(const TCommDbConnPref &aPref)const [inline]

Overloaded function for operator "=="

Parameters

const TCommDbConnPref & aPrefReference to the class TCommDbConnPref

Member Data Documentation

const TInt16 KBuildVersionNumber

const TInt16KBuildVersionNumber[static]

const TInt8 KMajorVersionNumber

const TInt8KMajorVersionNumber[static]

const TInt8 KMinorVersionNumber

const TInt8KMinorVersionNumber[static]