Add code for checking profile to support TV profile
[platform/core/uifw/inputdelegator.git] / inc / MoreOption.h
1 /*
2  * Copyright (c) 2016 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 #pragma once
18
19 #include "w-input-selector.h"
20 #include <Elementary.h>
21 #include <efl_extension.h>
22
23 #define NUM_ITEMS 1
24
25 class MoreOption
26 {
27         Evas_Object *nf;
28         Evas_Object *more_option_layout;
29 #ifdef _WEARABLE
30         Eext_Object_Item *item;
31 #endif
32         Eina_Bool option_opened;
33         void *voicedata;
34
35         public :
36                 MoreOption(Evas_Object *naviframe, void *voicedata);
37
38                 ~MoreOption();
39
40                 void Create();
41
42                 /**
43                  * Set option
44                  *
45                  */
46                 void SetContentLayout(Evas_Object *content);
47
48                 void Update();
49
50                 Evas_Object *getMoreOptionLayout(){return more_option_layout;};
51
52         private :
53                 /**
54                  * Main layout
55                  *
56                  */
57                 void AddLayout();
58
59                 /**
60                  * Add layout for options
61                  *
62                  */
63                 void AddMorePage();
64
65                 /**
66                  * Add icon style button ( used in more option )
67                  *
68                  * @param parent evas object parent
69                  * @return launguage button object
70                  *
71                  */
72                 Evas_Object *AddLanguageIcon(Evas_Object *parent);
73 };
74