CUPnPSettingsEngine Class Reference

class CUPnPSettingsEngine : public CBase
Settings engine class for UPnP Home Connect Application upnpapplicationengine.lib
Since
S60 3.1

Inherits from

Public Member Functions
~CUPnPSettingsEngine ()
IMPORT_C void CreateAccessPointL ()
IMPORT_C TInt GetAccessPoint ( TInt &)
IMPORT_C TInt GetAccessPointSetting ( TInt &)
IMPORT_C void GetCopyLocationDriveL ( TDriveNumber &)
IMPORT_C void GetCopyLocationL ( TDes &, TBool &)
IMPORT_C HBufC * GetCurrentIapNameL ( TInt )
IMPORT_C TInt GetFirstStart ( TInt &)
IMPORT_C TInt GetLocalFriendlyName ( TDes8 &)
IMPORT_C void GetWLANAccessPointsL ( CDesCArray *, RArray < TInt64 > &)
IMPORT_C TInt GetWapId ( TInt &)
IMPORT_C TBool IsAccessPointValidL ( TInt )
IMPORT_C CUPnPSettingsEngine * NewL ()
IMPORT_C CUPnPSettingsEngine * NewLC ()
IMPORT_C TInt SetAccessPoint (const TInt )
IMPORT_C TInt SetAccessPointSetting (const TInt )
IMPORT_C TInt SetCopyLocationL (const TDriveNumber )
IMPORT_C TInt SetFirstStart (const TInt )
IMPORT_C TInt SetLocalFriendlyName (const TDesC8 &)
IMPORT_C TInt SetManufacturerParamsL ()
IMPORT_C TInt SetWapId (const TInt )
Private Member Functions
CUPnPSettingsEngine ()
void ConstructL ()
TInt GetLocalFriendlyNameL ( TDes8 &)
void InitializePropertyL ( CUpnpMediaServerSettings &, TInt , const TDesC8 &)
TBool IsWLANAccessPointValidL ( TUint32 )
TInt ReadDeviceModelL ( TDes8 &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CRepository * iRepository
CUpnpSettings * iUpnpRepository

Constructor & Destructor Documentation

CUPnPSettingsEngine()

CUPnPSettingsEngine ( ) [private]

C++ default constructor.

~CUPnPSettingsEngine()

IMPORT_C ~CUPnPSettingsEngine ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CreateAccessPointL()

IMPORT_C void CreateAccessPointL ( ) [static]

Static helper method to create the iap editing window arrays.

Since
S60 5.1

GetAccessPoint(TInt &)

IMPORT_C TInt GetAccessPoint ( TInt & aIAP )
Gets Access Point information
Since
S60 3.1

Parameters

TInt & aIAP

GetAccessPointSetting(TInt &)

IMPORT_C TInt GetAccessPointSetting ( TInt & aIAPSetting )
Gets Access Point setting
Since
S60 3.1

Parameters

TInt & aIAPSetting

GetCopyLocationDriveL(TDriveNumber &)

IMPORT_C void GetCopyLocationDriveL ( TDriveNumber & aDrive ) const
Gets the drive for the copy operation
Since
S60 3.2

Parameters

TDriveNumber & aDrive

GetCopyLocationL(TDes &, TBool &)

IMPORT_C void GetCopyLocationL ( TDes & aLocation,
TBool & aIsPhoneMemory
) const
Gets the location for the copy operation
Since
S60 3.2

Parameters

TDes & aLocation
TBool & aIsPhoneMemory

GetCurrentIapNameL(TInt)

IMPORT_C HBufC * GetCurrentIapNameL ( TInt aIapId ) [static]
Get the name of the current IAP if it is set and is not always ask
Since
S60 5.1

Parameters

TInt aIapId

GetFirstStart(TInt &)

IMPORT_C TInt GetFirstStart ( TInt & aFirstStart )
Gets information if this is the first start of home network
Since
S60 3.1

Parameters

TInt & aFirstStart

GetLocalFriendlyName(TDes8 &)

IMPORT_C TInt GetLocalFriendlyName ( TDes8 & aFriendlyName ) const
Gets friendly name
Since
S60 3.1

Parameters

TDes8 & aFriendlyName

GetLocalFriendlyNameL(TDes8 &)

TInt GetLocalFriendlyNameL ( TDes8 & aFriendlyName ) const [private]
Gets friendly name, internal version
Since
S60 3.1

Parameters

TDes8 & aFriendlyName

GetWLANAccessPointsL(CDesCArray *, RArray< TInt64 > &)

IMPORT_C void GetWLANAccessPointsL ( CDesCArray * aNameArray,
RArray < TInt64 > & aIapIdArr
) [static]

Static helper method to retrieve info of access points into given arrays.

Since
S60 5.1

Parameters

CDesCArray * aNameArray
RArray < TInt64 > & aIapIdArr

GetWapId(TInt &)

IMPORT_C TInt GetWapId ( TInt & aWapId )
Gets selected wap access point id
Since
S60 3.1

Parameters

TInt & aWapId

InitializePropertyL(CUpnpMediaServerSettings &, TInt, const TDesC8 &)

void InitializePropertyL ( CUpnpMediaServerSettings & aSettings,
TInt aKey,
const TDesC8 & aValue
) const [private]
Initializes a property if property has not yet been set
Since
S60 3.1

Parameters

CUpnpMediaServerSettings & aSettings
TInt aKey
const TDesC8 & aValue

IsAccessPointValidL(TInt)

IMPORT_C TBool IsAccessPointValidL ( TInt aIapId ) [static]

Static helper method to validate iap by id.

Since
S60 5.1

Parameters

TInt aIapId

IsWLANAccessPointValidL(TUint32)

TBool IsWLANAccessPointValidL ( TUint32 aIapId ) [private, static]

Helper method to validate wlan access points.

Since
S60 5.1

Parameters

TUint32 aIapId

NewL()

IMPORT_C CUPnPSettingsEngine * NewL ( ) [static]

Two-phased constructor.

NewLC()

IMPORT_C CUPnPSettingsEngine * NewLC ( ) [static]

Two-phased constructor.

ReadDeviceModelL(TDes8 &)

TInt ReadDeviceModelL ( TDes8 & aModel ) const [private]
Reads device model, it is in form "Nokia xxxx" Note: Does not return correct value in subcon R&D builds
Since
S60 3.1

Parameters

TDes8 & aModel Device model

SetAccessPoint(const TInt)

IMPORT_C TInt SetAccessPoint ( const TInt aIAP )
Sets selected Access point
Since
S60 3.1

Parameters

const TInt aIAP

SetAccessPointSetting(const TInt)

IMPORT_C TInt SetAccessPointSetting ( const TInt aIAPSetting )
Sets selected Access point setting
Since
S60 3.1

Parameters

const TInt aIAPSetting

SetCopyLocationL(const TDriveNumber)

IMPORT_C TInt SetCopyLocationL ( const TDriveNumber aDrive ) const
Sets the location of the copy operation
Since
S60 3.2

Parameters

const TDriveNumber aDrive The drive number of the new location as defined in TDriveNumber.

SetFirstStart(const TInt)

IMPORT_C TInt SetFirstStart ( const TInt aFirstStart )
Sets information if this is the first start of home network
Since
S60 3.1

Parameters

const TInt aFirstStart

SetLocalFriendlyName(const TDesC8 &)

IMPORT_C TInt SetLocalFriendlyName ( const TDesC8 & aFriendlyName ) const
Sets friendly name
Since
S60 3.1

Parameters

const TDesC8 & aFriendlyName

SetManufacturerParamsL()

IMPORT_C TInt SetManufacturerParamsL ( ) const
Sets the mandatory manufacturer settings to media server
Since
S60 3.1

SetWapId(const TInt)

IMPORT_C TInt SetWapId ( const TInt aWapId )
Sets selected wap access point id
Since
S60 3.1

Parameters

const TInt aWapId

Member Data Documentation

CRepository * iRepository

CRepository * iRepository [private]

CUpnpSettings * iUpnpRepository

CUpnpSettings * iUpnpRepository [private]