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