aboutsummaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-01 01:34:47 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-01 01:34:47 -0500
commit3cc732f558737acd0004efb013993515845e67d7 (patch)
treecc554df46298fb7d01130f71024e55017b4bc007 /vapi
parent39263df5ab76e2f444e5dbb702512f741c56830c (diff)
downloadayatana-indicator-bluetooth-3cc732f558737acd0004efb013993515845e67d7.tar.gz
ayatana-indicator-bluetooth-3cc732f558737acd0004efb013993515845e67d7.tar.bz2
ayatana-indicator-bluetooth-3cc732f558737acd0004efb013993515845e67d7.zip
add per-profile icons and initial menus w/settings section
Diffstat (limited to 'vapi')
-rw-r--r--vapi/gnome-bluetooth-1.0.vapi82
1 files changed, 82 insertions, 0 deletions
diff --git a/vapi/gnome-bluetooth-1.0.vapi b/vapi/gnome-bluetooth-1.0.vapi
new file mode 100644
index 0000000..6d6aa09
--- /dev/null
+++ b/vapi/gnome-bluetooth-1.0.vapi
@@ -0,0 +1,82 @@
+[CCode (cprefix = "Bluetooth", lower_case_cprefix = "bluetooth_")]
+namespace GnomeBluetooth
+{
+
+[CCode (cheader_filename = "bluetooth-client.h")]
+public class Client : GLib.Object
+{
+ public Client ();
+ public Gtk.TreeModel model { get; }
+ public Gtk.TreeModel adapter_model { get; }
+ public Gtk.TreeModel device_model { get; }
+ [CCode (finish_function = "bluetooth_client_connect_service_finish")]
+ public async bool connect_service (string device, bool connect, GLib.Cancellable? cancellable = null) throws GLib.Error;
+}
+
+[CCode (cheader_filename = "bluetooth-enums.h", cprefix = "BLUETOOTH_COLUMN_")]
+public enum Column
+{
+ PROXY,
+ ADDRESS,
+ ALIAS,
+ NAME,
+ TYPE,
+ ICON,
+ DEFAULT,
+ PAIRED,
+ TRUSTED,
+ CONNECTED,
+ DISCOVERABLE,
+ DISCOVERING,
+ LEGACYPAIRING,
+ POWERED,
+ SERVICES,
+ UUIDS
+}
+
+[CCode (cheader_filename = "bluetooth-enums.h", cprefix = "BLUETOOTH_TYPE_")]
+public enum Type
+{
+ ANY,
+ PHONE,
+ MODEM,
+ COMPUTER,
+ NETWORK,
+ HEADSET,
+ HEADPHONES,
+ OTHER_AUDIO,
+ KEYBOARD,
+ MOUSE,
+ CAMERA,
+ PRINTER,
+ JOYPAD,
+ TABLET,
+ VIDEO
+}
+
+[CCode (cheader_filename = "bluetooth-utils.h")]
+public void browse_address (GLib.Object? object, string address, uint timestamp, GLib.AsyncReadyCallback? callback);
+
+[CCode (cheader_filename = "bluetooth-utils.h")]
+public void send_to_address (string address, string alias);
+
+[CCode (cheader_filename = "bluetooth-killswitch.h", cprefix = "BLUETOOTH_KILLSWITCH_STATE_")]
+public enum KillswitchState
+{
+ NO_ADAPTER,
+ SOFT_BLOCKED,
+ UNBLOCKED,
+ HARD_BLOCKED
+}
+
+[CCode (cheader_filename = "bluetooth-killswitch.h")]
+public class Killswitch : GLib.Object
+{
+ public Killswitch ();
+ public signal void state_changed (KillswitchState state);
+ public bool has_killswitches ();
+ public KillswitchState state { get; set; }
+ public unowned string state_to_string ();
+}
+
+}