2 * Copyright (c) 2014, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
14 #ifndef __CICO_ONSCREEN_POP_WINDOW_H__
15 #define __CICO_ONSCREEN_POP_WINDOW_H__
31 #include <Ecore_Evas.h>
36 #include <CicoNotification.h>
37 #include <CicoNotificationService.h>
39 #include "ico_syc_common.h"
40 #include "ico_syc_privilege.h"
44 /*============================================================================*/
45 /* Define fixed parameters */
46 /*============================================================================*/
48 #define STATUS_BAR_HEIGHT 64
49 #define CTRL_BAR_HEIGHT 128
54 #define POPUP_WIDTH 640
55 #define POPUP_HEIGHT 300
57 /* Popup Frame Size */
58 #define POPUP_FRAME_THICK 10
59 #define POPUP_FRAME_WIDTH (POPUP_WIDTH+POPUP_FRAME_THICK)
60 #define POPUP_FRAME_HEIGHT (POPUP_HEIGHT+POPUP_FRAME_THICK)
62 /* OnScreen window name(title) */
63 #define POPUP_WINDOW_TITLE "OnScreen"
65 /* Wait time for delete popup(ms) */
66 #define POPUP_DELETE_WAIT 100
71 #define ICO_OS_THEMES_EDJ_FILEPATH "/usr/apps/org.tizen.ico.onscreen/res/themes/onscreen.edj"
72 /*============================================================================*/
73 /* Define data types */
74 /*============================================================================*/
76 /*============================================================================*/
78 /*============================================================================*/
79 class CicoOSPopWindow :public CicoNotification {
81 CicoOSPopWindow(notification_type_e type);
82 CicoOSPopWindow(notification_h noti);
83 virtual ~CicoOSPopWindow();
85 void hidePopup(bool buttonTouch = false);
88 const CicoNotification& getNotif() const {
89 return (const CicoNotification&)*this;
91 bool createMainWindow();
92 void removeMainWindow();
95 bool InitializeWindow(void);
96 static void evasMouseUpCB(void *data, Evas *e, Evas_Object *obj,
98 void makeResWindowT(ico_syc_res_window_t& w);
99 static Ecore_Evas* m_window;
103 Evas_Object* m_theme;
104 uint32_t m_resourceId;
105 struct ico_syc_res_context* m_context;
106 std::string m_appsvc_pkgname;
109 #endif // __CICO_ONSCREEN_POP_WINDOW_H__
110 // vim:set expandtab ts=4 sw=4: