HSPluginSettingsIf::CHomescreenSettings Class Reference

class HSPluginSettingsIf::CHomescreenSettings : public CBase

Wrapper for hsps liw service


			
HomeScreenSettingsIf.lib
Since
S60 v5.0

Inherits from

  • HSPluginSettingsIf::CHomescreenSettings
Public Member Functions
IMPORT_C voidAddObserverL(MHomeScreenSettingsObserver *)
IMPORT_C TIntGetSettingsL(const TDesC8 &, RPointerArray< CItemMap > &)
IMPORT_C voidInitializeL(const TDesC8 &)
IMPORT_C CHomescreenSettings *Instance()
IMPORT_C voidRemoveObserver(MHomeScreenSettingsObserver *)
IMPORT_C TIntSetSettingsL(const TDesC8 &, const RPointerArray< CItemMap > &, const TBool)
IMPORT_C voidUnInitialize()
Protected Member Functions
CHomescreenSettings()
~CHomescreenSettings()
voidConstructL(const TDesC8 &)
voidFillMapFromItemL(CLiwDefaultMap &, const CItemMap &)
voidFillMapFromPropertiesL(CLiwDefaultList &, const RPointerArray< CPropertyMap > &)
TInt HandleNotifyL(TInt, TInt, CLiwGenericParamList &, const CLiwGenericParamList &)
CHomescreenSettings *NewL(const TDesC8 &)
CHomescreenSettings *NewLC(const TDesC8 &)
voidProcessConfItemPropertiesL(const CLiwList &, CItemMap &)
voidProcessConfigurationSettingsL(const CLiwList &, CHspsConfiguration &)
TInt SetPluginSettingsL(const TDesC8 &, const RPointerArray< CItemMap > &, const TDesC8 &)
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
MLiwInterface *iHspsInterface
CLiwCriteriaItem *iHspsService
RPointerArray< MHomeScreenSettingsObserver >iObservers
CLiwServiceHandler *iServiceHandler
TInt iTransactionId

Constructor & Destructor Documentation

CHomescreenSettings()

CHomescreenSettings()[protected]

Constructor.

~CHomescreenSettings()

~CHomescreenSettings()[protected, virtual]

Destructor.

Member Functions Documentation

AddObserverL(MHomeScreenSettingsObserver *)

IMPORT_C voidAddObserverL(MHomeScreenSettingsObserver *aObserver)

Add observer

Parameters

MHomeScreenSettingsObserver * aObserverObserver to be added.

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aAppUid)[protected]

Second phase constructor

Parameters

const TDesC8 & aAppUidApplication uid in integer format

FillMapFromItemL(CLiwDefaultMap &, const CItemMap &)

voidFillMapFromItemL(CLiwDefaultMap &aMap,
const CItemMap &aItemMap
)[protected]

Fills liw map from given item

Parameters

CLiwDefaultMap & aMapliw item map to fill in
const CItemMap & aItemMapitem map

FillMapFromPropertiesL(CLiwDefaultList &, const RPointerArray< CPropertyMap > &)

voidFillMapFromPropertiesL(CLiwDefaultList &aInPropertyMapList,
const RPointerArray< CPropertyMap > &aProperties
)[protected]

Fills liw map from given item properties

Parameters

CLiwDefaultList & aInPropertyMapList
const RPointerArray< CPropertyMap > & aProperties

GetSettingsL(const TDesC8 &, RPointerArray< CItemMap > &)

IMPORT_C TIntGetSettingsL(const TDesC8 &aPluginId,
RPointerArray< CItemMap > &aSettings
)

From MHomescreenSettingsIf Stores defined plugin s settings. Plugin is identified with unique plugin ID used in application s configuration

Parameters

const TDesC8 & aPluginIdPluging s ID which settings are stored
RPointerArray< CItemMap > & aSettingsList of item maps

HandleNotifyL(TInt, TInt, CLiwGenericParamList &, const CLiwGenericParamList &)

TInt HandleNotifyL(TIntaCmdId,
TIntaEventId,
CLiwGenericParamList &aEventParamList,
const CLiwGenericParamList &aInParamList
)[protected]

From MLiwNotifyCallback Handle HSPS notifications

Parameters

TInt aCmdIdCommand id
TInt aEventIdEvent id
CLiwGenericParamList & aEventParamListEvent parameters
const CLiwGenericParamList & aInParamListIn parameters

InitializeL(const TDesC8 &)

IMPORT_C voidInitializeL(const TDesC8 &aAppUid)[static]

Initialize settings api.

There must be one UnInitialize call for each Initialize call in order to prevent memory leaking. (Implementation contains reference counting)

Parameters

const TDesC8 & aAppUid

Instance()

IMPORT_C CHomescreenSettings *Instance()[static]

Get instance to settings API.

InitializeL must be called before calling this method. Otherwise NULL is returned. InitializeL and Instance must be called within same thread since TLS is used to storage instance data.

NewL(const TDesC8 &)

CHomescreenSettings *NewL(const TDesC8 &aAppUid)[protected, static]

Two-phased constructor.

Parameters

const TDesC8 & aAppUidApplication uid in integer format

NewLC(const TDesC8 &)

CHomescreenSettings *NewLC(const TDesC8 &aAppUid)[protected, static]

Two-phased constructor.

Parameters

const TDesC8 & aAppUidApplication uid in integer format

ProcessConfItemPropertiesL(const CLiwList &, CItemMap &)

voidProcessConfItemPropertiesL(const CLiwList &aPropertyMapList,
CItemMap &aItemMap
)[protected]

Processes all items' properties configuration

Parameters

const CLiwList & aPropertyMapListinput properties
CItemMap & aItemMapoutput item

ProcessConfigurationSettingsL(const CLiwList &, CHspsConfiguration &)

voidProcessConfigurationSettingsL(const CLiwList &aItemList,
CHspsConfiguration &aTarget
)[protected]

Processes all items configuration setting

Parameters

const CLiwList & aItemListitem list
CHspsConfiguration & aTargetoutput hsps configuration

RemoveObserver(MHomeScreenSettingsObserver *)

IMPORT_C voidRemoveObserver(MHomeScreenSettingsObserver *aObserver)

Remove observer

Parameters

MHomeScreenSettingsObserver * aObserverObserver to be removed.

SetPluginSettingsL(const TDesC8 &, const RPointerArray< CItemMap > &, const TDesC8 &)

TInt SetPluginSettingsL(const TDesC8 &aPluginId,
const RPointerArray< CItemMap > &aSettings,
const TDesC8 &aStoringParam
)[protected]

Sets plugin settings

Parameters

const TDesC8 & aPluginIdplugin id
const RPointerArray< CItemMap > & aSettingsarray of items to set
const TDesC8 & aStoringParamparameter to tell whether plugin configuration need to be saved.

SetSettingsL(const TDesC8 &, const RPointerArray< CItemMap > &, const TBool)

IMPORT_C TIntSetSettingsL(const TDesC8 &aPluginId,
const RPointerArray< CItemMap > &aSettings,
const TBoolaStoringParam
)

From MHomescreenSettingsIf Stores defined plugin s settings. Plugin is identified with unique plugin ID used in application s configuration

Parameters

const TDesC8 & aPluginIdPluging s ID which settings are stored
const RPointerArray< CItemMap > & aSettingsList of item maps
const TBool aStoringParamparameter to tell whether plugin configuration need to be saved also if parameter is ETrue.

UnInitialize()

IMPORT_C voidUnInitialize()[static]

Uninitialize settings api.

There must be one UnInitialize call for each Initialize call in order to prevent memory leaking. (Implementation contains reference counting)

Member Data Documentation

MLiwInterface * iHspsInterface

MLiwInterface *iHspsInterface[private]

Owned. Provides hsps services.

CLiwCriteriaItem * iHspsService

CLiwCriteriaItem *iHspsService[private]

Owned. HSPS SAPI service.

RPointerArray< MHomeScreenSettingsObserver > iObservers

RPointerArray< MHomeScreenSettingsObserver >iObservers[private]

CLiwServiceHandler * iServiceHandler

CLiwServiceHandler *iServiceHandler[private]

Owned. SAPI service handler.

TInt iTransactionId

TInt iTransactionId[private]