RWidgetRegistryClientSession Class Reference

class RWidgetRegistryClientSession : public RSessionBase

Inherits from

Public Member Functions
RWidgetRegistryClientSession()
IMPORT_C TIntConnect()
IMPORT_C voidDeRegisterWidgetL(const TUid &)
IMPORT_C TIntDisconnect()
IMPORT_C TUidGetAvailableUidL(TUint)
IMPORT_C voidGetLprojName(TDes &)
IMPORT_C voidGetWidgetBundleId(const TUid &, TDes &)
IMPORT_C voidGetWidgetBundleName(const TUid &, TDes &)
IMPORT_C voidGetWidgetPath(const TUid &, TDes &)
IMPORT_C CWidgetPropertyValue *GetWidgetPropertyValueL(const TUid &, TWidgetPropertyId)
IMPORT_C TIntGetWidgetUidForUrl(const TDesC &)
IMPORT_C TIntGetWidgetUidL(const TDesC &)
IMPORT_C TIntInstalledWidgetsL(RWidgetInfoArray &)
IMPORT_C TBoolIsBlanketPermGranted(const TUid &)
IMPORT_C TBoolIsWidget(const TUid &)
IMPORT_C TBoolIsWidgetInFullView(const TUid &)
IMPORT_C TBoolIsWidgetInMiniView(const TUid &)
IMPORT_C TBoolIsWidgetRunning(const TUid &)
IMPORT_C voidRegisterWidgetL(const RPointerArray< CWidgetPropertyValue > &)
IMPORT_C TIntRunningWidgetsL(RWidgetInfoArray &)
IMPORT_C TIntSecurityPolicyId()
IMPORT_C voidSetActive(const TUid &, TInt)
IMPORT_C voidSetBlanketPermissionL(const TUid &, TInt)
IMPORT_C voidSetFullViewL(const TUid &, TInt)
IMPORT_C voidSetMiniViewL(const TUid &, TInt)
IMPORT_C TVersionVersion()
IMPORT_C TIntWidgetCount(TInt &)
IMPORT_C TBoolWidgetExistsL(const TDesC &)
IMPORT_C TIntWidgetSapiAccessState(const TUid &)
Private Member Functions
voidDeserializeWidgetInfoL(RReadStream &, RWidgetInfoArray &, TInt)
CBufFlat *MarshalPropertyValuesL(const RPointerArray< CWidgetPropertyValue > &)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TIpcArgs iMesgArgs
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RWidgetRegistryClientSession()

IMPORT_CRWidgetRegistryClientSession()

Constructor

Member Functions Documentation

Connect()

IMPORT_C TIntConnect()

Connect to widgetregistry server

DeRegisterWidgetL(const TUid &)

IMPORT_C voidDeRegisterWidgetL(const TUid &aUid)

Deregister the widget

Parameters

const TUid & aUid

DeserializeWidgetInfoL(RReadStream &, RWidgetInfoArray &, TInt)

voidDeserializeWidgetInfoL(RReadStream &aStream,
RWidgetInfoArray &aWidgetInfoArr,
TIntaCount
)[private]

Read data from aStream

Parameters

RReadStream & aStream
RWidgetInfoArray & aWidgetInfoArr
TInt aCount

Disconnect()

IMPORT_C TIntDisconnect()

Disconnect from widgetregistry server

GetAvailableUidL(TUint)

IMPORT_C TUidGetAvailableUidL(TUintaDriveLetter)

Get next availble uid

Parameters

TUint aDriveLetter

GetLprojName(TDes &)

IMPORT_C voidGetLprojName(TDes &aLprojName)

Get the language project name which is the directory to hold localized resources

Parameters

TDes & aLprojName

GetWidgetBundleId(const TUid &, TDes &)

IMPORT_C voidGetWidgetBundleId(const TUid &aUid,
TDes &aWidgetBundleId
)

Returns bundle Id of the widget with a particular UId

Parameters

const TUid & aUid
TDes & aWidgetBundleId

GetWidgetBundleName(const TUid &, TDes &)

IMPORT_C voidGetWidgetBundleName(const TUid &aUid,
TDes &aWidgetBundleName
)

Returns bundle name of the widget with a particular UId

Parameters

const TUid & aUid
TDes & aWidgetBundleName

GetWidgetPath(const TUid &, TDes &)

IMPORT_C voidGetWidgetPath(const TUid &aUid,
TDes &aWidgetPath
)

Returns path of the widget with a particular UId

Parameters

const TUid & aUid
TDes & aWidgetPath

GetWidgetPropertyValueL(const TUid &, TWidgetPropertyId)

IMPORT_C CWidgetPropertyValue *GetWidgetPropertyValueL(const TUid &aUid,
TWidgetPropertyIdaPropertyId
)

Gets property value for a widget by UId, leaves on error

Parameters

const TUid & aUid
TWidgetPropertyId aPropertyId

GetWidgetUidForUrl(const TDesC &)

IMPORT_C TIntGetWidgetUidForUrl(const TDesC &aUrl)

Returns UId of the widget with a particular Url

Parameters

const TDesC & aUrl

GetWidgetUidL(const TDesC &)

IMPORT_C TIntGetWidgetUidL(const TDesC &aBundleId)

Returns uid of the widget with a particular bundle identifier

Parameters

const TDesC & aBundleId

InstalledWidgetsL(RWidgetInfoArray &)

IMPORT_C TIntInstalledWidgetsL(RWidgetInfoArray &aWidgetInfoArr)

Returns widget info for all the installed widgets.

Parameters

RWidgetInfoArray & aWidgetInfoArr

IsBlanketPermGranted(const TUid &)

IMPORT_C TBoolIsBlanketPermGranted(const TUid &aUid)

Returns true if the blanket permission is granted

Parameters

const TUid & aUid

IsWidget(const TUid &)

IMPORT_C TBoolIsWidget(const TUid &aUid)

Returns true if the Uid falls within the range specified for widgets.

Parameters

const TUid & aUid

IsWidgetInFullView(const TUid &)

IMPORT_C TBoolIsWidgetInFullView(const TUid &aUid)

Returns true if the widget is in FullView.

Parameters

const TUid & aUid

IsWidgetInMiniView(const TUid &)

IMPORT_C TBoolIsWidgetInMiniView(const TUid &aUid)

Returns true if the widget is in MiniView.

Parameters

const TUid & aUid

IsWidgetRunning(const TUid &)

IMPORT_C TBoolIsWidgetRunning(const TUid &aUid)

Returns true if the widget is running.

Parameters

const TUid & aUid

MarshalPropertyValuesL(const RPointerArray< CWidgetPropertyValue > &)

CBufFlat *MarshalPropertyValuesL(const RPointerArray< CWidgetPropertyValue > &aPropertyValues)const [private]

Creates and returns heap descriptor which holds contents of RWidgetDataArray or CWidgetInfo based on the datatype passed

Parameters

const RPointerArray< CWidgetPropertyValue > & aPropertyValues

RegisterWidgetL(const RPointerArray< CWidgetPropertyValue > &)

IMPORT_C voidRegisterWidgetL(const RPointerArray< CWidgetPropertyValue > &aPropertyValues)

Registers the widget

Parameters

const RPointerArray< CWidgetPropertyValue > & aPropertyValues

RunningWidgetsL(RWidgetInfoArray &)

IMPORT_C TIntRunningWidgetsL(RWidgetInfoArray &aWidgetInfoArr)

Returns widget info for all the running widgets.

Parameters

RWidgetInfoArray & aWidgetInfoArr

SecurityPolicyId()

IMPORT_C TIntSecurityPolicyId()

Returns security policyId.

SetActive(const TUid &, TInt)

IMPORT_C voidSetActive(const TUid &aUid,
TIntaStatus
)

Set/Reset active status of the widget

Parameters

const TUid & aUid
TInt aStatus

SetBlanketPermissionL(const TUid &, TInt)

IMPORT_C voidSetBlanketPermissionL(const TUid &aUid,
TIntaStatus
)

Set/Reset blaket permission for widgets

Parameters

const TUid & aUid
TInt aStatus

SetFullViewL(const TUid &, TInt)

IMPORT_C voidSetFullViewL(const TUid &aUid,
TIntaStatus
)

Set/Reset Full view status of widget

Parameters

const TUid & aUid
TInt aStatus

SetMiniViewL(const TUid &, TInt)

IMPORT_C voidSetMiniViewL(const TUid &aUid,
TIntaStatus
)

Set/Reset Mini view launched status of widget

Parameters

const TUid & aUid
TInt aStatus

Version()

IMPORT_C TVersionVersion()const

Returns the version

WidgetCount(TInt &)

IMPORT_C TIntWidgetCount(TInt &aCount)

Returns count of widgets installed.

Parameters

TInt & aCount

WidgetExistsL(const TDesC &)

IMPORT_C TBoolWidgetExistsL(const TDesC &aBundleId)

Returns true if the widget is installed

Parameters

const TDesC & aBundleId

WidgetSapiAccessState(const TUid &)

IMPORT_C TIntWidgetSapiAccessState(const TUid &aUid)

Returns if widget sapi access is prompted, promptless or denied.

Parameters

const TUid & aUid

Member Data Documentation

TIpcArgs iMesgArgs

TIpcArgs iMesgArgs[private]