diff options
author | srimaldia <hariasti.srimaldia-1@jp.alps.com> | 2016-12-22 18:47:12 +0900 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2016-12-22 21:24:42 +0000 |
commit | b90397fb136d4e8b3bef68dfffd8e0e9b8658f6d (patch) | |
tree | 6eee38c86904a1987b95b749eabef173c73e2bac /wifi-connman.h | |
parent | f67d4105a572345d1fed1231e06b99bd9411d040 (diff) |
Add status icon for wifi
to test this, you need to add conf file under /etc/dbus-1/session.d/
<?xml version="1.0"?> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy context="default">
<allow send_destination="org.agl.homescreen"/>
</policy>
</busconfig>
Change-Id: I8fa1707883fa4c74460255949bc4ce1cd29cabf2
Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
Diffstat (limited to 'wifi-connman.h')
-rw-r--r-- | wifi-connman.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wifi-connman.h b/wifi-connman.h index bd83821..c47cbcd 100644 --- a/wifi-connman.h +++ b/wifi-connman.h @@ -52,6 +52,12 @@ extern "C" { #define WIFI_MAX_PSK_PASSPHRASE_LEN 65 #define WIFI_MAX_WEP_KEY_LEN 26 +#define HOMESCREEN_SERVICE "org.agl.homescreen" +#define HOMESCREEN_ICON_INTERFACE "org.agl.statusbar" +#define HOMESCREEN_ICON_PATH "/StatusBar" +#define HOMESCREEN_WIFI_ICON_POSITION 0 + + #define AGENT_PATH "/net/connman/Agent" #define AGENT_SERVICE "org.agent" @@ -96,6 +102,8 @@ struct wifi_profile_info{ struct wifi_net wifiNetwork; }; +enum wifiStates {BAR_NO, BAR_1, BAR_2, BAR_3, BAR_FULL}; + //typedef void(*callback)(void); typedef void(*callback)(int password_rejected_flag); void register_callback(callback ptr); @@ -113,6 +121,7 @@ GError* do_disconnectNetwork(gchar *object); GError* create_agent(GDBusConnection *connection); GError* stop_agent(GDBusConnection *connection); +GError* setHMIStatus(enum wifiStates); void registerPasskey(gchar *object); GError* sendPasskey(gchar *object); |