Link against: hswidgetpublisher.lib
#include <hsdataobserver.h>
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 );
Public Types | |
enum | EEvent { EUnknown = 0, EActivate = 1, EDeactivate = 2, ESuspend = 3, EResume = 4 } |
Defines the events that may take place for a homescreen widget. More... | |
enum | EItemEvent { EUnknownItemEvent = 0, ESelect = 1 } |
Defines the events that may take place for a homescreen widget item. More... | |
Public Member Functions | |
virtual void | handleEvent (std::string aWidgetName, IHsDataObserver::EEvent aEvent)=0 |
Intended to handle an event that occured on a widget. | |
virtual void | handleItemEvent (std::string aWidgetName, std::string aWidgetItemName, IHsDataObserver::EItemEvent aEvent)=0 |
Intended to handle an event that occured on a widget's item. |
|
|
Defines the events that may take place for a homescreen widget item. |
|
Intended to handle an event that occured on a widget. This would include EActivate, EDeactivate, ESuspend, EReusume.
|
|
Intended to handle an event that occured on a widget's item. This would include ESelection.
|