68051b42d2231dbc7acb32699b47db378a9cef62
[apps/agl-service-windowmanager-2017.git] / src / wm_config.hpp
1 /*
2  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
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 WM_CONFIG_HPP
18 #define WM_CONFIG_HPP
19 #include <string>
20 #include "wm_error.hpp"
21
22 struct json_object;
23
24 namespace wm
25 {
26
27 class WMConfig {
28 public:
29     WMConfig();
30     ~WMConfig();
31     WMConfig(const WMConfig &) = delete;
32     WMConfig &operator=(const WMConfig &) = delete;
33     WMError loadConfigs();
34     const std::string getConfigAspect();
35
36   private:
37     WMError loadSetting(const std::string &path);
38     // private variable
39     json_object *j_setting_conf;
40 };
41
42 } // namespace wm
43 #endif // WM_CONFIG_HPP