summaryrefslogtreecommitdiff
path: root/include/smartsearch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/smartsearch.h')
-rwxr-xr-xinclude/smartsearch.h95
1 files changed, 73 insertions, 22 deletions
diff --git a/include/smartsearch.h b/include/smartsearch.h
index 1edd84e..5c80cbf 100755
--- a/include/smartsearch.h
+++ b/include/smartsearch.h
@@ -1,12 +1,12 @@
/*
* 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.
@@ -32,14 +32,8 @@
#include <aul.h>
#include <ui-gadget.h>
#include <malloc.h>
-extern "C" {
-}
#include <sqlite3.h>
-#include <media-svc.h>
-#include <MapiControl.h>
-#include <MapiStorage.h>
-#include <MapiMessage.h>
-#include <MsgStorageTypes.h>
+#include <msg_types.h>
#include "smartsearch_define.h"
#include "ps_debug_util.h"
@@ -50,26 +44,75 @@ extern "C" {
#include "util-func.h"
#define _EDJ(x) elm_layout_edje_get(x)
-
+
struct search_more_result{
int next_point;
int offset;
int loop_cnt;
int result_cnt;
+ struct appdata *ad;
+};
+
+struct search_content_object {
+ int order;
+ Eina_Bool visible;
+ char *name;
+ int string_type;
+ int contents_type;
+ int category_type;
+ char *def_pkg_name;
+ char *obj_icon_path;
+ Elm_Object_Item *gl_result_grp;
+ struct search_more_result mr_info;
+};
+
+struct search_category_info {
+ char *btn_icon_path;
+ char *btn_icon_press_path;
+ char *popup_icon_path;
+ char *popup_press_icon_path;
+};
+
+struct search_genlist_item_info {
+ int type;
+ struct search_content_object *obj;
+ Elm_Genlist_Item_Class *itc_style;
+ void *data;
+ Elm_Object_Item *parent;
+};
+
+struct search_genlist_info {
+ struct search_genlist_item_info *group;
+ GList *itemlist;
+ struct search_genlist_item_info *more;
+};
+
+struct search_pipe_data {
+ int cmd;
+ struct search_genlist_info *result_list;
+ int search_ret;
+ struct search_content_object *obj;
};
struct search_item_sel {
- unsigned char type;
+ int type;
char path[MAX_LENGTH_PER_PATH];
- char main_id[MAX_LENGTH_PER_ID];
char main_buf[MAX_LENGTH_PER_LINE];
char sub_buf[MAX_LENGTH_PER_LINE];
+ char main_id[MAX_LENGTH_PER_ID];
+ char icon1_path[MAX_LENGTH_PER_PATH];
+ char icon2_path[MAX_LENGTH_PER_PATH];
+};
+
+struct search_item_more_sel {
+ struct search_content_object *obj;
};
struct appdata {
Evas_Object *win_main;
Evas_Object *layout_main;
Evas_Object *navi_bar;
+ Elm_Object_Item *navi_it;
double scale_factor;
@@ -87,33 +130,41 @@ struct appdata {
Evas_Object *cate_btn;
Ecore_Idler *idler_search;
Ecore_Idler *idler_create_ui;
-
+ Ecore_Timer *search_timer;
+
int touch_x;
int touch_y;
Elm_Genlist_Item_Class *itc_pslist_1line;
- Elm_Genlist_Item_Class *itc_pslist_2line;
+ Elm_Genlist_Item_Class *itc_pslist_1line_1icon;
+ Elm_Genlist_Item_Class *itc_pslist_1line_2icon;
+ Elm_Genlist_Item_Class *itc_pslist_2line_1icon;
+ Elm_Genlist_Item_Class *itc_pslist_2line_2icon;
Elm_Genlist_Item_Class *itc_grouptitle;
+ Elm_Genlist_Item_Class *itc_label;
Elm_Genlist_Item_Class *itc_listmore;
- search_more_result cate_info[SEARCH_TYPE_PHONE_MAX];
+ Ecore_Pipe *pipe;
+ Ecore_Thread *search_thread;
+ Eina_Condition condition;
+ Eina_Lock mutex;
char *search_word;
char *not_markup_search_word;
int back_btn_type;
+ int search_category;
Evas_Object *effect_layout;
- ui_gadget *detail_ug;
-
- Elm_Object_Item *gl_result_group_item[PHONE_CATEGORY_LIST_CNT];
+ ui_gadget_h detail_ug;
sqlite3 *search_db_hd;
- sqlite3_stmt *search_db_sql_stmt[SEARCH_STMT_MAX];
+ sqlite3_stmt *search_db_sql[SEARCH_STMT_MAX];
+ struct search_content_object result_obj[SEARCH_CONT_MAX];
+ struct search_category_info category_info[SEARCH_CATE_MAX];
/* Handle List */
- MSG_HANDLE_T msg_handle;
- MediaSvcHandle *media_handle;
+ msg_handle_t msg_handle;
};
#endif