4 * @brief Connman service request handling.
6 * @author Ossama Othman @<ossama.othman@@intel.com@>
9 * Copyright 2013 Intel Corporation All Rights Reserved.
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.
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.
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
27 #ifndef IVI_SETTINGS_CONNMAN_SERVICE_HPP
28 #define IVI_SETTINGS_CONNMAN_SERVICE_HPP
30 #include "connman.hpp"
31 #include "connman_manager.hpp"
38 class response_callback;
43 * @brief Connman Service object proxy.
45 * This class exposes functionality found in the connman
46 * @c Service interface to the caller.
55 * @param[in] service_path The D-Bus object path for connman
57 * @param[in] connection Underlying D-Bus connection.
58 * @param[in] e Callback through which events will be
61 service(std::string service_path,
62 GDBusConnection * connection);
65 * Handle connman Service object request.
67 * @param[in] name The Connman Service method name.
68 * @param[in] reader @c JsonReader object containing desired
69 * values. The value will be in the second
71 * @param[in] response Callback through which results will be
74 void handle_request(char const * name,
76 connman_manager & manager,
77 response_callback & response);
81 /// Connect to the service.
82 void connect(JsonReader * reader,
83 connman_manager & manager,
84 response_callback response);
86 /// Disconnect from the service.
87 void disconnect(JsonReader * reader,
88 connman_manager & manager,
89 response_callback response);
92 * Call the method @a name on the connman Service object.
94 * @param[in] name The connman Service object method
96 * @param[inout] response Callback used to inform the caller of
99 void call_method(char const * name,
100 response_callback response);
104 /// The proxy used to access the connman Service D-Bus API.
113 #endif /* IVI_SETTINGS_CONNMAN_SERVICE_HPP */
119 // indent-tabs-mode: nil