[misc] Sync from master branch.
[apps/core/preloaded/calendar.git] / include / cld.h
index ab070a3..518534c 100755 (executable)
 #include <contacts.h>
 #include <calendar2.h>
 #include <ui-gadget.h>
+#include <notification.h>
 
 #include "cal-svc.h"
-
 #include "cld-log.h"
 #include "cld-utils.h"
+#include "appcontrol.h"
 
 #define CAL_QUICKADD_LONG_PRESS_TIME 0.5
 
 #define EMAIL_LINK_FLAG "#email_viewer_link#"
 #endif
 
-#define CAL_APPCONTROL_ITEM_TYPE "itemType"
-#define CAL_APPCONTROL_ITEM_TYPE_EVENT "event"
-#define CAL_APPCONTROL_ITEM_TYPE_TODO "todo"
-#define CAL_APPCONTROL_ITEM_TYPE_VCS "vcs"
-#define CAL_APPCONTROL_EVENT_ID "eventId"
-#define CAL_APPCONTROL_TODO_ID "todoId"
-#define CAL_APPCONTROL_VCS_PATH "path"
-
 #define CAL_APPSVC_PARAM_CALLER "caller"
 #define CAL_APPSVC_PARAM_COUNT "count"
 #define CAL_APPSVC_PARAM_TYPE "type"
@@ -105,13 +98,6 @@ typedef enum ug_type {
        UG_MAX,
 }ug_type;
 
-typedef enum {
-       ITEM_TYPE_UNKNOWN = 0,
-       ITEM_TYPE_EVENT,
-       ITEM_TYPE_TODO,
-       ITEM_TYPE_VCS,
-       ITEM_TYPE_MAX
-}cal_appcontrol_item_type;
 
 typedef struct {
        struct tm stm;
@@ -151,11 +137,20 @@ typedef struct
        Eina_Bool is_deleted;
 }cal_participant;
 
+typedef enum {
+       CAL_WINDOW_ROTATION_0 = 0,
+       CAL_WINDOW_ROTATION_90 = 90,
+       CAL_WINDOW_ROTATION_180 = 180,
+       CAL_WINDOW_ROTATION_270 = 270,
+
+} cal_window_rotation;
+
 typedef struct appdata
 {
        Evas_Object *win;                       //window
        Evas_Coord win_w;                               //width of window
-       Evas_Coord win_h;                                       //height of window
+       Evas_Coord win_h;                               //height of window
+       app_device_orientation_e orientation;           // direction of device
        Evas_Object *conform;                   //conformants
        Evas_Object *base;                      //base layout
        Evas_Object *naviframe;                         //naviframe
@@ -235,6 +230,8 @@ typedef struct appdata
 
        Eina_Bool need_to_show_popup;           // to keep popup for rotating
 
+       cal_window_rotation rotation;
+
 }ug_data;
 
 int is_hour24;