summaryrefslogtreecommitdiff
path: root/src/browser-bookmark/browser-select-folder-view.h
blob: 54719fa38645b97d0a3ba9d422cc0b65340f1c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * 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 BROWSER_SELECT_FOLDER_VIEW_H
#define BROWSER_SELECT_FOLDER_VIEW_H

#include "browser-common-view.h"
#include "browser-config.h"

class Browser_Select_Folder_View : public Browser_Common_View {
public:
	Browser_Select_Folder_View(int current_folder_id);
	~Browser_Select_Folder_View(void);

	Eina_Bool init(void);
	void return_to_select_folder_view(void);
private:
	Eina_Bool _create_main_layout(void);
	void _fill_folder_list(void);

	/* Elementary event callback functions */
	static void __folder_item_selected_cb(void *data, Evas_Object *obj, void *event_info);
	static void __new_folder_clicked_cb(void *data, Evas_Object *obj, void *event_info);
	static void __cancel_button_clicked_cb(void *data, Evas_Object *obj, void *event_info);
	static void __done_button_clicked_cb(void *data, Evas_Object *obj, void *event_info);
	static void __naviframe_pop_finished_cb(void *data , Evas_Object *obj, void *event_info);

	Evas_Object *m_list;
	Evas_Object *m_content_layout;
	Evas_Object *m_conformant;
	Evas_Object *m_bottom_control_bar;
	Evas_Object *m_cancel_button;
	Evas_Object *m_done_button;
	Elm_Object_Item *m_navi_it;

	int m_current_folder_id;
	vector<Browser_Bookmark_DB::bookmark_item *> m_folder_list;
	Browser_Bookmark_DB::bookmark_item *m_main_folder_item;
};

#endif /* BROWSER_SELECT_FOLDER_VIEW_H */