Tizen 2.1 base
[apps/home/myfiles.git] / src / widget / mf-content.c
1 /*
2  * Copyright 2013         Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *  http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18
19
20 #include "mf-widget.h"
21 #include "mf-util.h"
22 #include "mf-fm-svc-wrapper.h"
23 /***Todo        we need to extract some common code to be APIs***/
24 /******************************
25 ** Prototype    : mf_content_create_list
26 ** Description  : create the list for the content
27 ** Input        : struct appdata *data
28 ** Output       : None
29 ** Return Value :
30 ** Calls        :
31 ** Called By    :
32 **
33 **  History        :
34 **  1.Date         : 2010/12/10
35 **    Author       : Samsung
36 **    Modification : Created function
37 **
38 ******************************/
39 Evas_Object *mf_content_create_list(struct appdata *data)
40 {
41         struct appdata *ap = (struct appdata *)data;
42         mf_retvm_if(ap == NULL, NULL, "invalid parameter data");
43
44
45         if (ap->mf_MainWindow.pNaviGenlist)
46                 ap->mf_MainWindow.pNaviGenlist = NULL;
47
48         return mf_navi_bar_content_create(ap);
49 }
50
51 /******************************
52 ** Prototype    : mf_content_main_layout_set_by_tab_item_count
53 ** Description  : set content of mainlayout by the count of tab bar items
54 ** Input        : void *data
55 ** Output       : None
56 ** Return Value : 0     tab is deleted and navibar of phone set as content
57                                 : 1     tab bar is the content
58 ** Calls        :
59 ** Called By    :
60 **
61 **  History        :
62 **  1.Date         : 2010/12/10
63 **    Author       : Samsung
64 **    Modification : Created function
65 **
66 ******************************/
67
68