diff options
author | Kim Kibum <kb0929.kim@samsung.com> | 2012-06-08 14:54:14 +0900 |
---|---|---|
committer | Kim Kibum <kb0929.kim@samsung.com> | 2012-06-08 14:54:14 +0900 |
commit | bf8879b3c9c9a58111b20ea76263a5845a2f56fb (patch) | |
tree | a5ef3437c6d260a0fcdce447cec29a5270905fd3 /include/smartsearch.h | |
parent | 636878b6968ffd73d0fee4722d992ecb47e9f3a4 (diff) | |
download | smartsearch-bf8879b3c9c9a58111b20ea76263a5845a2f56fb.tar.gz smartsearch-bf8879b3c9c9a58111b20ea76263a5845a2f56fb.tar.bz2 smartsearch-bf8879b3c9c9a58111b20ea76263a5845a2f56fb.zip |
apply FSL(Flora Software License)
Diffstat (limited to 'include/smartsearch.h')
-rwxr-xr-x | include/smartsearch.h | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/include/smartsearch.h b/include/smartsearch.h new file mode 100755 index 0000000..1edd84e --- /dev/null +++ b/include/smartsearch.h @@ -0,0 +1,119 @@ +/* + * 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 __DEF_SMARTSEARCH_H__ +#define __DEF_SMARTSEARCH_H__ + +#include <glib.h> +#include <time.h> +#include <Elementary.h> +#include <Ecore_X.h> +#include <appcore-efl.h> +#include <Ecore_IMF.h> +#include <vconf.h> +#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 "smartsearch_define.h" +#include "ps_debug_util.h" +#include "search_bar.h" +#include "ps_makeupviews.h" +#include "ps_app_interface.h" +#include "common_util.h" +#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 search_item_sel { + unsigned char 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]; +}; + +struct appdata { + Evas_Object *win_main; + Evas_Object *layout_main; + Evas_Object *navi_bar; + + double scale_factor; + + Evas_Object *search_entry; + Evas_Object *search_bar; + Evas_Object *search_cancel_btn; + Evas_Object *search_gl; + Evas_Object *noresult_view; + Evas_Object *sb_layout; + Evas_Object *back_btn; + + Evas_Object *ctxpopup; + Evas_Object *cate_ctxpopup; + + Evas_Object *cate_btn; + Ecore_Idler *idler_search; + Ecore_Idler *idler_create_ui; + + 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_grouptitle; + Elm_Genlist_Item_Class *itc_listmore; + + search_more_result cate_info[SEARCH_TYPE_PHONE_MAX]; + + char *search_word; + char *not_markup_search_word; + + int back_btn_type; + + Evas_Object *effect_layout; + ui_gadget *detail_ug; + + Elm_Object_Item *gl_result_group_item[PHONE_CATEGORY_LIST_CNT]; + + sqlite3 *search_db_hd; + sqlite3_stmt *search_db_sql_stmt[SEARCH_STMT_MAX]; + + /* Handle List */ + MSG_HANDLE_T msg_handle; + MediaSvcHandle *media_handle; +}; + +#endif |