Fix build error due to changing app-common
[profile/tv/apps/native/filebrowser.git] / src / views / BaseView / Info.cpp
1 /*
2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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 #include <Elementary.h>
18 #include <Eina.h>
19 #include <Ecore.h>
20 #include <aul.h>
21 #include "dbg.h"
22 #include <AppCommon.h>
23 #include "define.h"
24 #include "common.h"
25 #include "Info.h"
26
27
28 struct SInfo {
29         int group_index;
30         int source_type;
31         int sort_type;
32 };
33
34 static SInfo g_info;
35
36 void CInfo::SetGroupIndex(int index)
37 {
38         g_info.group_index = index;
39 }
40
41 int CInfo::GroupIndex(void)
42 {
43         return g_info.group_index;
44 }
45
46 void CInfo::SetSourceType(int source_type)
47 {
48         g_info.source_type = source_type;
49 }
50
51 int CInfo::SourceType(void)
52 {
53         return g_info.source_type;
54 }
55
56 void CInfo::SetSortType(int type)
57 {
58         g_info.sort_type = type;
59 }
60
61 int CInfo::SortType(void)
62 {
63         return g_info.sort_type;
64 }