TIVI-1924: Initial commit of IVI settings daemon.
[profile/ivi/settings-daemon.git] / plugins / connman / wifi.cpp
1 /**
2  * @file wifi.cpp
3  *
4  * @brief Connman-based wifi settings.
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
27 #include "wifi.hpp"
28 #include <settingsd/response_callback.hpp>
29
30 // ----------------------------------------------------------------------
31
32 namespace
33 {
34   std::string const technology_name("wifi");
35 }
36
37 // ----------------------------------------------------------------------
38
39 ivi::settings::wifi::wifi()
40   : technology_(technology_name)
41 {
42 }
43
44 ivi::settings::wifi::~wifi()
45 {
46 }
47
48 std::string const &
49 ivi::settings::wifi::id() const
50 {
51   return technology_name;
52 }
53
54 void
55 ivi::settings::wifi::handle_request(std::string request,
56                                     response_callback response)
57 {
58   technology_.handle_request(request, response);
59 }
60
61
62 // Local Variables:
63 // mode:c++
64 // c-basic-offset:2
65 // indent-tabs-mode: nil
66 // End: