Hs::IHsDataObserver Class Reference
class Hs::IHsDataObserver |
An observer interface. Client must implement it to be able to get information about occuring Execute actions from the Homescreen Publishing API.
class ObserverClass : public IHsDataObserver
{
void handleEvent( std::string aWidgetName,
IHsDataObserver::EEvent aEvent)
{
}
void handleItemEvent( std::string aWidgetName,
std::string aWidgetItemName,
IHsDataObserver::EItemEvent aEvent)
{
}
}
ObserverClass* dataObserver = new ObserverClass();
HsWidgetPublisher* hsPublisher = new HsWidgetPublisher( dataObserver );
Member Functions Documentation
handleEvent(std::string, IHsDataObserver::EEvent)
Intended to handle an event that occured on a widget. This would include EActivate, EDeactivate, ESuspend, EReusume.
handleItemEvent(std::string, std::string, IHsDataObserver::EItemEvent)
Intended to handle an event that occured on a widget's item. This would include ESelection.
Member Enumerations Documentation
Enum EEvent
Defines the events that may take place for a homescreen widget.
Enumerators
EUnknown = 0 | |
EActivate = 1 | |
EDeactivate = 2 | |
ESuspend = 3 | |
EResume = 4 | |
EPluginshutdown = 5 | |
Enum EItemEvent
Defines the events that may take place for a homescreen widget item.
Enumerators
EUnknownItemEvent = 0 | |
ESelect = 1 | |
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.