virtual void onRequest(Operation operation, app_control_h request) = 0;
private:
- static void onWindowLowered(void *data, Evas_Object *obj, void *eventInfo);
-
int m_SupportedOperations;
app_control_h m_Request;
bool m_IsMinimizable;
if (!m_IsMinimizable) {
m_Navigator->unsetLastPageCallback();
- evas_object_smart_callback_del_full(m_Window->getEvasObject(),
- "iconified", &OperationController::onWindowLowered, this);
}
}
{
app_control_destroy(m_Request);
app_control_clone(&m_Request, request);
-
- if (!m_IsMinimizable) {
- app_control_launch_mode_e launchMode = APP_CONTROL_LAUNCH_MODE_SINGLE;
- app_control_get_launch_mode(m_Request, &launchMode);
-
- if (launchMode == APP_CONTROL_LAUNCH_MODE_SINGLE) {
- evas_object_smart_callback_add(m_Window->getEvasObject(),
- "iconified", &OperationController::onWindowLowered, this);
- }
- }
-
onRequest(operation, m_Request);
}
app_control_reply_to_launch_request(reply, m_Request, APP_CONTROL_RESULT_FAILED);
app_control_destroy(reply);
}
-
-void OperationController::onWindowLowered(void *data, Evas_Object *obj, void *eventInfo)
-{
- ui_app_exit();
-}