00001 /* ============================================================================ 00002 * Name : hsdataobserver.h 00003 * Part of : Homescreen Publishing Api 00004 * Interface : 00005 * Description : Updates applications and icons in Operator Tile. 00006 * Version : << Don't touch! Updated by Synergy at check-out. 00007 * 00008 * Copyright © 2007 Nokia. All rights reserved. 00009 * This material, including documentation and any related computer 00010 * programs, is protected by copyright controlled by Nokia. All 00011 * rights are reserved. Copying, including reproducing, storing, 00012 * adapting or translating, any or all of this material requires the 00013 * prior written consent of Nokia. This material also contains 00014 * confidential information which may not be disclosed to others 00015 * without the prior written consent of Nokia. 00016 * ============================================================================ 00017 * Template version: 4.0 00018 */ 00019 00020 #ifndef __HSDATAOBSERVER_H__ 00021 #define __HSDATAOBSERVER_H__ 00022 00023 #include <string> 00024 00025 namespace Hs { 00049 class IHsDataObserver 00050 { 00051 public: 00052 00056 enum EEvent 00057 { 00058 EUnknown = 0, 00059 EActivate = 1, 00060 EDeactivate = 2, 00061 ESuspend = 3, 00062 EResume = 4 00063 }; 00064 00068 enum EItemEvent 00069 { 00070 EUnknownItemEvent = 0, 00071 ESelect = 1 00072 }; 00073 00074 public: 00075 00083 virtual void handleEvent( std::string aWidgetName, 00084 IHsDataObserver::EEvent aEvent) = 0; 00085 00094 virtual void handleItemEvent( std::string aWidgetName, 00095 std::string aWidgetItemName, 00096 IHsDataObserver::EItemEvent aEvent) = 0; 00097 }; 00098 } 00099 00100 #endif /*__HSDATAOBSERVER_H__*/