26085a0424b22a6a6c89d4f792bd7fb2bad8186c
[framework/web/wrt-installer.git] / src / jobs / widget_install / task_livebox_conf.h
1 /*
2  * Copyright (c) 2012 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  * @file    task_livebox_conf.h
18  * @author  Tomasz Iwanek (t.iwanek@samsung.com)
19  * @version 1.0
20  * @brief   Livebox support task
21  */
22
23 #ifndef WRT_INSTALLER_SRC_JOBS_WIDGET_INSTALL_TASK_LIVEBOX_CONF_H
24 #define WRT_INSTALLER_SRC_JOBS_WIDGET_INSTALL_TASK_LIVEBOX_CONF_H
25
26 //forward declaration
27 class InstallerContext;
28
29 #include <string>
30
31 #include <dpl/task.h>
32
33 class TaskLiveboxConf : public DPL::TaskDecl<TaskLiveboxConf>
34 {
35 public:
36     TaskLiveboxConf(InstallerContext &inCont);
37 private:
38
39     void StepConfigureLivebox();
40
41     /**
42      * @brief getLiveboxConfiguration returns value of configuration path
43      *                                        pointing at .conf file
44      * @return path
45      */
46     std::string getLiveboxConfiguration() const;
47     /**
48      * @brief getLiveboxConfiguration returns value of configuration directory
49      * @return path
50      */
51     std::string getLiveboxConfigurationDirectory() const;
52     std::string getLiveboxConfigurationFile() const;
53
54     //context data
55     InstallerContext &m_context;
56 };
57
58 #endif // WRT_INSTALLER_SRC_JOBS_WIDGET_INSTALL_TASK_LIVEBOX_CONF_H