[gnome-flashback] bluetooth-applet: add rfkill interface



commit 2a02d86b56a826fb4a56408be3240046079aadd0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Sep 9 20:50:01 2015 +0300

    bluetooth-applet: add rfkill interface

 gnome-flashback/libbluetooth-applet/Makefile.am    |   22 ++++++++++++++++++++
 .../org.gnome.SettingsDaemon.Rfkill.xml            |   15 +++++++++++++
 2 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libbluetooth-applet/Makefile.am b/gnome-flashback/libbluetooth-applet/Makefile.am
index 1cf652f..c63ebc2 100644
--- a/gnome-flashback/libbluetooth-applet/Makefile.am
+++ b/gnome-flashback/libbluetooth-applet/Makefile.am
@@ -15,6 +15,7 @@ libbluetooth_applet_la_CFLAGS = \
 libbluetooth_applet_la_SOURCES = \
   gf-bluetooth-applet.c \
        gf-bluetooth-applet.h \
+       $(BUILT_SOURCES) \
        $(NULL)
 
 libbluetooth_applet_la_LDFLAGS = \
@@ -26,4 +27,25 @@ libbluetooth_applet_la_LIBADD = \
        $(BLUETOOTH_APPLET_LIBS) \
        $(NULL)
 
+gf-settings-daemon-rfkill.h:
+gf-settings-daemon-rfkill.c: org.gnome.SettingsDaemon.Rfkill.xml
+       $(AM_V_GEN) gdbus-codegen \
+               --interface-prefix org.gnome.SettingsDaemon.Rfkill. \
+               --c-namespace Gf \
+               --generate-c-code gf-settings-daemon-rfkill \
+               $(srcdir)/org.gnome.SettingsDaemon.Rfkill.xml
+
+BUILT_SOURCES = \
+       gf-settings-daemon-rfkill.c \
+       gf-settings-daemon-rfkill.h \
+       $(NULL)
+
+EXTRA_DIST = \
+       org.gnome.SettingsDaemon.Rfkill.xml \
+       $(NULL)
+
+CLEANFILES = \
+       $(BUILT_SOURCES) \
+       $(NULL)
+
 -include $(top_srcdir)/git.mk
diff --git a/gnome-flashback/libbluetooth-applet/org.gnome.SettingsDaemon.Rfkill.xml 
b/gnome-flashback/libbluetooth-applet/org.gnome.SettingsDaemon.Rfkill.xml
new file mode 100644
index 0000000..b51c346
--- /dev/null
+++ b/gnome-flashback/libbluetooth-applet/org.gnome.SettingsDaemon.Rfkill.xml
@@ -0,0 +1,15 @@
+<node>
+  <interface name="org.gnome.SettingsDaemon.Rfkill">
+
+    <annotation name="org.gtk.GDBus.C.Name" value="SettingsDaemonRfkill" />
+
+    <property name="AirplaneMode" type="b" access="readwrite" />
+    <property name="HardwareAirplaneMode" type="b" access="read" />
+    <property name="HasAirplaneMode" type="b" access="read" />
+    <property name="ShouldShowAirplaneMode" type="b" access="read" />
+    <property name="BluetoothAirplaneMode" type="b" access="readwrite" />
+    <property name="BluetoothHardwareAirplaneMode" type="b" access="read" />
+    <property name="BluetoothHasAirplaneMode" type="b" access="read" />
+
+  </interface>
+</node>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]