Hs::HsWidgetPublisherImpl Class Reference
class Hs::HsWidgetPublisherImpl : public MLiwNotifyCallback |
Inherits from
- Hs::HsWidgetPublisherImpl
Public Member Functions |
---|
| HsWidgetPublisherImpl() |
| ~HsWidgetPublisherImpl() |
HsWidget & | CreateWidget(std::string &, std::string &, std::string &, std::string &, std::string &) |
HsWidget & | GetWidget(std::string &, std::string &, std::string &) |
TInt
| HandleNotifyL(TInt, TInt, CLiwGenericParamList &, const CLiwGenericParamList &) |
void | PublishWidget(HsWidget &) |
void | RemoveWidget(std::string &, std::string &, std::string &) |
void | SetDataObserver(IHsDataObserver *) |
Private Member Functions |
---|
void | AddItemsActionsL(HsWidget &, TInt) |
bool | CheckIfWidgetExist(std::string &, std::string &, std::string &, TBool) |
std::string
| GetPublisherNameL(HsWidget &) |
MLiwInterface * | GetServiceInterfaceL() |
std::string
| GetWidgetIdentifierFromPublisherNameL(const TDesC &) |
HsWidget * | GetWidgetL(const CLiwMap *) |
void | HandleWidgetActionL(const TDesC8 &, const TDesC &, HsWidget &) |
int | HandleWidgetItemActionL(const TDesC8 &, HsWidget &) |
void | InsertWidgetACLL(CLiwDefaultMap *) |
void | InsertWidgetDataIdentifiersL(HsWidget &, CLiwDefaultMap *) |
void | InsertWidgetDataIdentifiersL(HsWidget &, CLiwDefaultMap *, const TDesC &) |
void | InsertWidgetIdentifiersL(HsWidget &, CLiwDefaultMap *) |
void | InsertWidgetInfoL(HsWidget &, CLiwDefaultMap *) |
void | InsertWidgetItemsL(HsWidget &, CLiwDefaultMap *) |
TInt
| ObtainErrorCode(const CLiwGenericParamList &) |
void | PublishWidgetActionsL(HsWidget &) |
void | PublishWidgetDataL(HsWidget &) |
void | RegisterNotificationL(HsWidget &) |
void | RemoveFromCpsL(CLiwDefaultMap *, const TDesC &) |
void | RemoveWidgetL(HsWidget &) |
HBufC * | StdStringToUnicodeLC(const std::string &) |
std::string
| ToStringL(const TDesC &) |
std::wstring | ToWideStringL(const TDesC &) |
void | TranslateObserverAction(const TDesC8 &, IHsDataObserver::EEvent &) |
TInt
| TranslateServiceError(TInt32) |
void | UnegisterNotificationL() |
HBufC * | Utf8ToUnicodeLC(const TDesC8 &) |
Constructor & Destructor Documentation
~HsWidgetPublisherImpl()
~HsWidgetPublisherImpl | ( | ) | [virtual] |
Member Functions Documentation
AddItemsActionsL(HsWidget &, TInt)
void | AddItemsActionsL | ( | HsWidget & | aWidgetItem, |
| TInt | aItemIndex |
| ) | [private] |
CheckIfWidgetExist(std::string &, std::string &, std::string &, TBool)
CreateWidget(std::string &, std::string &, std::string &, std::string &, std::string &)
GetPublisherNameL(HsWidget &)
Returns publisher name that should be used with a certain widget when registering the widget, writing/deleting widget data or requesting event notification.
Parameters
HsWidget & aWidget | A valid widget object. |
GetWidget(std::string &, std::string &, std::string &)
GetWidgetIdentifierFromPublisherNameL(const TDesC &)
std::string
| GetWidgetIdentifierFromPublisherNameL | ( | const TDesC & | aPublisherName | ) | [private] |
Parses publisher name in order to determine widget identifier. Will leave with KErrNotFound if publisher name is invalid.
Parameters
const TDesC & aPublisherName | Publisher name |
GetWidgetL(const CLiwMap *)
HandleNotifyL(TInt, TInt, CLiwGenericParamList &, const CLiwGenericParamList &)
TInt
| HandleNotifyL | ( | TInt | aCmdId, |
| TInt | aEventId, |
| CLiwGenericParamList & | aEventParamList, |
| const CLiwGenericParamList & | aInParamList |
| ) | [virtual] |
Handles notifications caused by an asynchronous Execute*CmdL call or an event.
Parameters
TInt aCmdId | The service command associated to the event. |
TInt aEventId | Occured event, see LiwCommon.hrh. |
CLiwGenericParamList & aEventParamList | Event parameters, if any, as defined per each event. |
const CLiwGenericParamList & aInParamList | Input parameters, if any, given in the related HandleCommmandL. |
HandleWidgetActionL(const TDesC8 &, const TDesC &, HsWidget &)
void | HandleWidgetActionL | ( | const TDesC8 & | aActionDes, |
| const TDesC & | aContentIdDes, |
| HsWidget & | aWidget |
| ) | [private] |
HandleWidgetItemActionL(const TDesC8 &, HsWidget &)
int | HandleWidgetItemActionL | ( | const TDesC8 & | aActionDes, |
| HsWidget & | aWidget |
| ) | [private] |
InsertWidgetACLL(CLiwDefaultMap *)
InsertWidgetDataIdentifiersL(HsWidget &, CLiwDefaultMap *)
InsertWidgetDataIdentifiersL(HsWidget &, CLiwDefaultMap *, const TDesC &)
InsertWidgetIdentifiersL(HsWidget &, CLiwDefaultMap *)
InsertWidgetInfoL(HsWidget &, CLiwDefaultMap *)
InsertWidgetItemsL(HsWidget &, CLiwDefaultMap *)
ObtainErrorCode(const CLiwGenericParamList &)
TInt
| ObtainErrorCode | ( | const CLiwGenericParamList & | aOutParamList | ) | [private] |
Parameters
const CLiwGenericParamList & aOutParamList | |
PublishWidget(HsWidget &)
PublishWidgetActionsL(HsWidget &)
void | PublishWidgetActionsL | ( | HsWidget & | aWidget | ) | [private] |
PublishWidgetDataL(HsWidget &)
void | PublishWidgetDataL | ( | HsWidget & | aWidget | ) | [private] |
RegisterNotificationL(HsWidget &)
void | RegisterNotificationL | ( | HsWidget & | aWidget | ) | [private] |
RemoveFromCpsL(CLiwDefaultMap *, const TDesC &)
RemoveWidget(std::string &, std::string &, std::string &)
RemoveWidgetL(HsWidget &)
void | RemoveWidgetL | ( | HsWidget & | aWidget | ) | [private] |
SetDataObserver(IHsDataObserver *)
StdStringToUnicodeLC(const std::string &)
Parameters
const std::string & aSrcString | utf8-encoded std::string. |
ToWideStringL(const TDesC &)
std::wstring | ToWideStringL | ( | const TDesC & | aText | ) | const [private] |
TranslateObserverAction(const TDesC8 &, IHsDataObserver::EEvent &)
TranslateServiceError(TInt32)
TInt
| TranslateServiceError | ( | TInt32 | aServiceErrorCode | ) | [private] |
UnegisterNotificationL()
void | UnegisterNotificationL | ( | ) | [private] |
Utf8ToUnicodeLC(const TDesC8 &)
HBufC * | Utf8ToUnicodeLC | ( | const TDesC8 & | aSrcString | ) | const [private] |
Parameters
const TDesC8 & aSrcString | 8-bit utf8-encoded string. |
Member Data Documentation
IHsDataObserver * mHsDataObserver
CLiwServiceHandler * mServiceHandler
CLiwServiceHandler * | mServiceHandler | [private] |
MLiwInterface * mServiceInterface
WidgetContentIdMapType
mWidgetContentIds
std::vector< HsWidget * > mWidgets
std::vector< HsWidget * > | mWidgets | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.