dbg.h file is removed.
[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 <Ecore.h>
18 #include <aul.h>
19
20 #include <AppCommon.h>
21 #include "define.h"
22 #include "common.h"
23 #include "Info.h"
24
25
26 struct SInfo {
27         int group_index;
28         int source_type;
29         int sort_type;
30 };
31
32 static SInfo g_info;
33
34 void CInfo::SetGroupIndex(int index)
35 {
36         g_info.group_index = index;
37 }
38
39 int CInfo::GroupIndex(void)
40 {
41         return g_info.group_index;
42 }
43
44 void CInfo::SetSourceType(int source_type)
45 {
46         g_info.source_type = source_type;
47 }
48
49 int CInfo::SourceType(void)
50 {
51         return g_info.source_type;
52 }
53
54 void CInfo::SetSortType(int type)
55 {
56         g_info.sort_type = type;
57 }
58
59 int CInfo::SortType(void)
60 {
61         return g_info.sort_type;
62 }