CNATFWServerSettings Class Reference

class CNATFWServerSettings : public CBase

Class for querying STUN/TURN server settings.

natfwnatsettings.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CNATFWServerSettings(TUint, const TBool)

CNATFWServerSettings ( TUint aPort,
const TBool aSecret
) [private]

Parameters

TUint aPort
const TBool aSecret

~CNATFWServerSettings()

~CNATFWServerSettings ( ) [virtual]

Destructor.

Member Functions Documentation

Address()

const TDesC8 & Address ( ) const

From MNATFWServerSettings Returns STUN/TURN server address.

Since
S60 v3.2

ConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

void ConstructL ( const TDesC8 & aAddress,
const TDesC8 & aUsername,
const TDesC8 & aPassword
) [private]

Parameters

const TDesC8 & aAddress
const TDesC8 & aUsername
const TDesC8 & aPassword

NewL(const TDesC8 &, TUint, const TDesC8 &, const TDesC8 &, const TBool)

CNATFWServerSettings * NewL ( const TDesC8 & aAddress,
TUint aPort,
const TDesC8 & aUsername,
const TDesC8 & aPassword,
const TBool aSharedSecretEnabled
) [static]

Two-phased constructor.

Parameters

const TDesC8 & aAddress
TUint aPort
const TDesC8 & aUsername
const TDesC8 & aPassword
const TBool aSharedSecretEnabled

NewLC(const TDesC8 &, TUint, const TDesC8 &, const TDesC8 &, const TBool)

CNATFWServerSettings * NewLC ( const TDesC8 & aAddress,
TUint aPort,
const TDesC8 & aUsername,
const TDesC8 & aPassword,
const TBool aSharedSecretEnabled
) [static]

Two-phased constructor.

Parameters

const TDesC8 & aAddress
TUint aPort
const TDesC8 & aUsername
const TDesC8 & aPassword
const TBool aSharedSecretEnabled

Password()

const TDesC8 & Password ( ) const

From MNATFWServerSettings Returns password to the server.

Since
S60 v3.2

Port()

TUint Port ( ) const

From MNATFWServerSettings Returns STUN/TURN server port number.

Since
S60 v3.2

ReadSettingsL(TUint32, const CNATFWCenRepHandler &)

void ReadSettingsL ( TUint32 aServerSettingsKey,
const CNATFWCenRepHandler & aRepHandler
)

Reads settings from Central Repository

Since
S60 v3.2

Parameters

TUint32 aServerSettingsKey ID key for server wanted to be read
const CNATFWCenRepHandler & aRepHandler CR Handler

SharedSecretEnabled()

TBool SharedSecretEnabled ( ) const

From MNATFWServerSettings Returns shared secred enabled

Since
S60 v3.2

Username()

const TDesC8 & Username ( ) const

From MNATFWServerSettings Returns username to the server.

Since
S60 v3.2

Member Data Documentation

HBufC8 * iAddress

HBufC8 * iAddress [private]

Server address own

HBufC8 * iPassword

HBufC8 * iPassword [private]

Server password own

TUint iPort

TUint iPort [private]

Server port

TBool iSharedSecretEnabled

TBool iSharedSecretEnabled [private]

Shared secret enabled

HBufC8 * iUsername

HBufC8 * iUsername [private]

Server username own