summaryrefslogtreecommitdiff
path: root/lib/include/ct-favor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/include/ct-favor.h')
-rw-r--r--lib/include/ct-favor.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/lib/include/ct-favor.h b/lib/include/ct-favor.h
new file mode 100644
index 0000000..92fff33
--- /dev/null
+++ b/lib/include/ct-favor.h
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __CT_FAVOR_H__
+#define __CT_FAVOR_H__
+
+#include "phone-common.h"
+
+enum {
+ PH_FAVOR_MODE_DEFAULT,
+ PH_FAVOR_MODE_EDIT,
+};
+
+typedef struct
+{
+ Evas_Object *win;
+ Evas_Object *mf_layout;
+ Evas_Object *navi;
+ Evas_Object *layout;
+ Evas_Object *cbar;
+ Evas_Object *favor_gengrid;
+ Evas_Object *mf_gengrid;
+ Evas_Object *popup;
+ Evas_Object *ctx_popup;
+ Elm_Theme *th;
+ Elm_Object_Item *navi_item;
+ Elm_Object_Item *navi_btn;
+ Eina_List *favor_list;
+ Eina_List *mf_list;
+ Eina_Bool longpressed;
+ Ecore_Timer *update_timer_contact;
+ Ecore_Timer *update_timer_favor;
+ Ecore_Timer *update_timer_log;
+ int list_mode;
+ int selected_contact;
+ int checked_cnt;
+ int favor_list_count;
+ int mf_list_count;
+ int readed_n;
+ int version;
+ int ug_request;
+ int ug_cnt_max;
+ int touch_x;
+ int touch_y;
+ bool is_background;
+ bool is_mf_changed;
+ char *ug_data;
+ Ecore_Idler *list_idler;
+ void *ug;
+ void *child_ug;
+ ph_progress_info *p_info;
+}ph_favorite_data;
+
+Evas_Object* phone_favor_create_view(ph_view_info *view_info);
+void phone_favor_set_navi(Evas_Object *base, int mode);
+void phone_favor_view_reset(Evas_Object *base);
+void phone_favor_set_background(Evas_Object *obj, bool is_background);
+void phone_favor_edit_mode_start(ph_favorite_data *favor_d);
+
+#endif /* __CT_FAVOR_H__ */
+