4 * @brief Connman-based settings plugin header.
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
28 #ifndef IVI_SETTINGS_CONNMAN_HPP
29 #define IVI_SETTINGS_CONNMAN_HPP
41 * @brief Common connman-based settings functionality.
43 * This class implements functionality common to all connman-based
44 * settings, such as bluetooth, wifi, date/time, etc.
53 * @param[in] interface Connman D-Bus interface.
54 * @param[in] path Connman D-Bus object path.
55 * @param[in] connection Underlying D-Bus connection.
57 connman(char const * interface,
59 GDBusConnection * connection);
65 * Set @a property to given @a value on the underlying connman
68 * @param[in] property The name of the property to be set.
69 * @param[in] value The property value to be set.
70 * @param[inout] error The error object containing information
71 * on a failed connman @c SetProperty method
74 * @returns @c nullptr on a failed call to the connman
75 * @c SetProperty method.
77 GVariant * set_property(char const * property,
81 /// Get pointer to underlying GDBusProxy.
82 GDBusProxy * proxy() const { return proxy_; }
84 /// Get pointer to underlying GDBusConnection.
88 return g_dbus_proxy_get_connection(G_DBUS_PROXY(proxy_));
91 /// Convenience function to get D-Bus interface name.
93 interface_name() const
95 return g_dbus_proxy_get_interface_name(proxy_);
98 /// Convenience function to get D-Bus object path.
102 return g_dbus_proxy_get_object_path(proxy_);
107 /// The proxy used to access the Connman D-Bus API.
116 #endif /* IVI_SETTINGS_CONNMAN_HPP */
122 // indent-tabs-mode: nil