constexpr const int kIconifyTimeout = 500;
constexpr const char kFeatureShellAppWidget[] =
"http://tizen.org/feature/shell.appwidget";
-constexpr int APP_EVENT_MAX = 7;
+constexpr int APP_EVENT_MAX = static_cast<int>(IAppCore::IEvent::Type::END);
constexpr IAppCore::IEvent::Type __app_event_converter[APP_EVENT_MAX] = {
[APP_EVENT_LOW_MEMORY] = IAppCore::IEvent::Type::LOW_MEMORY,
[APP_EVENT_LOW_BATTERY] = IAppCore::IEvent::Type::LOW_BATTERY,
[APP_EVENT_REGION_FORMAT_CHANGED] = IAppCore::IEvent::Type::REGION_CHANGE,
[APP_EVENT_SUSPENDED_STATE_CHANGED]
= IAppCore::IEvent::Type::SUSPENDED_STATE_CHANGE,
+ [APP_EVENT_UPDATE_REQUESTED] = IAppCore::IEvent::Type::UPDATE_REQUESTED,
+ [APP_EVENT_TIME_ZONE_CHANGED] = IAppCore::IEvent::Type::TIME_ZONE_CHANGED,
};
class AppWidget : public WidgetBase {
return WIDGET_ERROR_INVALID_PARAMETER;
if (event_type < APP_EVENT_LOW_MEMORY ||
- event_type > APP_EVENT_REGION_FORMAT_CHANGED)
+ event_type > APP_EVENT_TIME_ZONE_CHANGED)
return WIDGET_ERROR_INVALID_PARAMETER;
if (event_type == APP_EVENT_DEVICE_ORIENTATION_CHANGED)