Change source file permissions to 0644
[platform/core/uifw/inputdelegator.git] / inc / w-input-template.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 #ifndef __W_INPUT_TEMPLATE_H_
18 #define __W_INPUT_TEMPLATE_H_
19
20 #include <vector>
21 #include <string>
22
23 #include <app_control.h>
24
25 struct TemplateData {
26         std::string text;
27         bool use_gettext;
28 };
29
30 typedef void (*input_template_changed) (void *user_data);
31
32
33 void input_template_init(app_control_h app_control);
34
35 void input_template_deinit(void);
36
37 const std::vector<TemplateData> input_template_get_list(void);
38
39 void input_template_set_notify(input_template_changed callback, void *user_data);
40
41 void input_template_unset_notify(void);
42
43 bool input_template_is_user_template(void);
44
45 #endif