3df953b1ad8345b4265dcfa5f3133fee0f7dbc68
[apps/home/settings.git] / setting-ringtone / include / setting-ringtone.h
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21 #ifndef __SETTING_RINGTONE_H__
22 #define __SETTING_RINGTONE_H__
23
24 #include <stdio.h>
25 #include <Elementary.h>
26 #include <glib-object.h>
27 #include <player.h>
28 #include <sound_manager.h>
29
30 #include <setting-common-draw-widget.h>
31 #include <setting-common-view.h>
32
33 typedef struct _SettingRingtoneUG SettingRingtoneUG;
34
35 /**
36  * Setting About UG context
37  * all UG function has void* as an agument. this is casted back to SettingRingtoneUG
38  * and the functions access app context.
39  */
40 struct _SettingRingtoneUG {
41         ui_gadget_h ug;
42         app_control_h source_svc;
43
44         Evas *evas;
45         Evas_Object *win_main_layout;
46         Evas_Object *win_get;
47         Evas_Object *navi_bar;
48         Evas_Object *ly_main;
49
50         Evas_Object *scroller;
51         Evas_Object *ring_rgd;
52
53         Elm_Genlist_Item_Class itc_ring;
54         Eina_List *filelist;
55
56         player_h *mp_ringtone;
57
58         //extra data
59         char *dir_path;
60         char *file_path;
61         int is_show_silent;
62         int is_show_def;
63
64         //result data
65         char *sel_file_path;
66         char *rlt_file_path;
67
68         //selected item data
69         Setting_GenGroupItem_Data *sel_item_data;
70 };
71 extern setting_view setting_view_ringtone_main;
72 #endif                          /* __SETTING_RINGTONE_H__ */