467c896e9ead496f8f3beaa7b0587678a2b127c7
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / CicoHSControlBarWindow.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  */
9 /**
10  * @brief   control bar window
11  *
12  * @date    Aug-08-2013
13  */
14 #ifndef __CICO_HS_CONTROLBAR_WINDOW_H__
15 #define __CICO_HS_CONTROLBAR_WINDOW_H__
16 #include <stdio.h>
17 #include <pthread.h>
18 #include <libwebsockets.h>
19
20 #include <unistd.h>
21 #include <Eina.h>
22 #include <Evas.h>
23 #include <Ecore.h>
24 #include <Ecore_Wayland.h>
25 #include <Ecore_Evas.h>
26 #include <Edje.h>
27
28 #include "CicoHomeScreenCommon.h"
29 #include "CicoHomeScreenConfig.h"
30 #include "CicoHSWindow.h"
31
32 #define ICO_HS_CONTROL_BAR_HOME_BUTTON_START_POS_Y 10
33 #define ICO_HS_CONTROL_BAR_HOME_BUTTON_WIDTH 108
34 #define ICO_HS_CONTROL_BAR_HOME_BUTTON_HEIGHT 108
35
36 class CicoHSControlBarWindow :public CicoHSWindow
37 {
38   public:
39     CicoHSControlBarWindow(void);
40     ~CicoHSControlBarWindow(void);
41     int Initialize(void);
42     void Finalize(void);
43     int CreateControlBarWindow(int pos_x,int pos_y,int width,int height);
44     void FreeControlBarWindow(void);
45     
46     void TouchHome(void);
47
48   private:
49     char img_dir_path[ICO_HS_MAX_PATH_BUFF_LEN];
50     Evas *evas;         /* evas object */
51     Evas_Object *canvas;
52     Evas_Object *home_button;
53
54   protected:
55     CicoHSControlBarWindow operator=(const CicoHSControlBarWindow&);
56     CicoHSControlBarWindow(const CicoHSControlBarWindow&);
57 };
58 #endif
59