TIVI-1924: Initial commit of IVI settings daemon.
[profile/ivi/settings-daemon.git] / tests / test_setting.hpp
1 /**
2  * @file test_setting.hpp
3  *
4  * @brief Settings daemon test plugin.
5  *
6  * @author Ossama Othman @<ossama.othman@@intel.com@>
7  *
8  * @copyright @par
9  * Copyright 2013 Intel Corporation All Rights Reserved.
10  * @par
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation;
14  * version 2.1 of the License.
15  * @par
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Lesser General Public License for more details.
20  * @par
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
24  * Boston, MA  02110-1301  USA
25  *
26  * @note This header is internal.  Settings provider plugin implementors
27  *       should write their own library/symbol export macros as
28  *       needed.
29  */
30
31
32 #ifndef TEST_SETTING_HPP
33 #define TEST_SETTING_HPP
34
35 #include <settingsd/plugin.hpp>
36
37
38 /**
39  * @class test_setting
40  *
41  * @brief Settings daemon test plugin.
42  *
43  * This test plugin responds to settings test requests and
44  * provides test responses, accordingly.
45  */
46 class test_setting : public ivi::settings::plugin
47 {
48 public:
49
50   /// Constructor.
51   test_setting();
52
53   /// Destructor.
54   virtual ~test_setting();
55
56   /**
57    * @name Settings Plugin API
58    *
59    * Interface defined by the @c ivi::settings::plugin abstract
60    * base class.
61    *
62    * @see settingsd/plugin.hpp
63    */
64   //@{
65   virtual std::string const & id() const;
66   virtual void handle_request(std::string request,
67                               ivi::settings::response_callback response);
68   //@}
69
70 };
71
72
73 #endif  /* TEST_SETTING_HPP */
74
75
76 // Local Variables:
77 // mode:c++
78 // c-basic-offset:2
79 // indent-tabs-mode: nil
80 // End:
81