From 761a9fff03812af3c0beb26da1094c69fc3a0a72 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 31 Jul 2013 23:04:40 -0500 Subject: add a vapi/ directory off the top package directory --- vapi/config.vapi | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 vapi/config.vapi (limited to 'vapi') diff --git a/vapi/config.vapi b/vapi/config.vapi new file mode 100644 index 0000000..15c4c88 --- /dev/null +++ b/vapi/config.vapi @@ -0,0 +1,8 @@ +[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "../config.h")] +namespace Config { + public const string GETTEXT_PACKAGE; + public const string GNOMELOCALEDIR; + public const string PKGDATADIR; + public const string PACKAGE_NAME; + public const string PACKAGE_VERSION; +} -- cgit v1.2.3 From 3cc732f558737acd0004efb013993515845e67d7 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 1 Aug 2013 01:34:47 -0500 Subject: add per-profile icons and initial menus w/settings section --- vapi/gnome-bluetooth-1.0.vapi | 82 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 vapi/gnome-bluetooth-1.0.vapi (limited to 'vapi') 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 (); +} + +} -- cgit v1.2.3 From cf894302767d5ec483b5f8002bb796a284895bbf Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 1 Aug 2013 18:21:05 -0500 Subject: add a bluetooth backend to track bluetooth being enabled, being hard/soft blocked, and its devices. --- vapi/rfkill.vapi | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 vapi/rfkill.vapi (limited to 'vapi') diff --git a/vapi/rfkill.vapi b/vapi/rfkill.vapi new file mode 100644 index 0000000..7bfd16d --- /dev/null +++ b/vapi/rfkill.vapi @@ -0,0 +1,44 @@ +// (C) Michael 'Mickey' Lauer +// LGPL2 +// scheduled for inclusion in linux.vapi + +namespace Linux +{ + /* + * RfKill + */ + [CCode (cname = "struct rfkill_event", cheader_filename = "linux/rfkill.h")] + public struct RfKillEvent { + public uint32 idx; + public RfKillType type; + public RfKillOp op; + public uint8 soft; + public uint8 hard; + } + + [CCode (cname = "guint8", cprefix = "RFKILL_OP_", cheader_filename = "linux/rfkill.h")] + public enum RfKillOp { + ADD, + DEL, + CHANGE, + CHANGE_ALL + } + + [CCode (cname = "guint8", cprefix = "RFKILL_STATE_", cheader_filename = "linux/rfkill.h")] + public enum RfKillState { + SOFT_BLOCKED, + UNBLOCKED, + HARD_BLOCKED + } + + [CCode (cname = "guint8", cprefix = "RFKILL_TYPE_", cheader_filename = "linux/rfkill.h")] + public enum RfKillType { + ALL, + WLAN, + BLUETOOTH, + UWB, + WIMAX, + WWAN + } + +} /* namespace Linux */ -- cgit v1.2.3 From dfd38e506145b8569611e5fb0eb8cb49eef1b7b2 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 1 Aug 2013 20:30:08 -0500 Subject: move indicator3-0.4.vapi to the vapi dir. it'll go away soon enough... --- vapi/indicator3-0.4.vapi | 145 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 vapi/indicator3-0.4.vapi (limited to 'vapi') diff --git a/vapi/indicator3-0.4.vapi b/vapi/indicator3-0.4.vapi new file mode 100644 index 0000000..44204cd --- /dev/null +++ b/vapi/indicator3-0.4.vapi @@ -0,0 +1,145 @@ +/* indicator-0.4.vapi generated by vapigen, do not modify. */ + +namespace Indicator { + [CCode (cheader_filename = "libindicator/indicator-desktop-shortcuts.h", type_check_function = "INDICATOR_IS_DESKTOP_SHORTCUTS", type_id = "indicator_desktop_shortcuts_get_type")] + public class DesktopShortcuts : GLib.Object { + [CCode (has_construct_function = false)] + public DesktopShortcuts (string file, string identity); + public unowned string get_nicks (); + public bool nick_exec (string nick); + public unowned string nick_get_name (string nick); + public string desktop_file { construct; } + [NoAccessorMethod] + public string identity { owned get; construct; } + } + [CCode (cheader_filename = "libindicator/indicator-object.h", type_check_function = "INDICATOR_IS_OBJECT", type_id = "indicator_object_get_type ()")] + public class Object : GLib.Object { + [CCode (has_construct_function = false)] + public Object (); + public bool check_environment (string env); + [NoWrapper] + public virtual void entry_activate (Indicator.ObjectEntry entry, uint timestamp); + [NoWrapper] + public virtual void entry_activate_window (Indicator.ObjectEntry entry, uint windowid, uint timestamp); + [NoWrapper] + public virtual void entry_being_removed (Indicator.ObjectEntry entry); + [NoWrapper] + public virtual void entry_close (Indicator.ObjectEntry entry, uint timestamp); + [NoWrapper] + public virtual void entry_was_added (Indicator.ObjectEntry entry); + [CCode (has_construct_function = false)] + public Object.from_file (string file); + [NoWrapper] + public virtual signal unowned string get_accessible_desc (); + public virtual GLib.List get_entries (); + public unowned string[] get_environment (); + [NoWrapper] + public virtual unowned Gtk.Image get_image (); + [NoWrapper] + public virtual unowned Gtk.Label get_label (); + public virtual uint get_location (Indicator.ObjectEntry entry); + [NoWrapper] + public virtual unowned Gtk.Menu get_menu (); + [NoWrapper] + public virtual unowned string get_name_hint (); + public virtual bool get_show_now (Indicator.ObjectEntry entry); + public void set_environment (string[] env); + public void set_visible (bool visible); + [NoAccessorMethod] + public bool indicator_object_default_visibility { get; set; } + public virtual signal void accessible_desc_update (Indicator.ObjectEntry entry); + public virtual signal void entry_added (Indicator.ObjectEntry entry); + public virtual signal void entry_moved (Indicator.ObjectEntry entry, uint old_pos, uint new_pos); + public virtual signal void entry_removed (Indicator.ObjectEntry entry); + public virtual signal void entry_scrolled (Indicator.ObjectEntry entry, uint delta, Indicator.ScrollDirection direction); + public virtual signal void menu_show (Indicator.ObjectEntry entry, uint timestamp); + public virtual signal void secondary_activate (Indicator.ObjectEntry entry, uint timestamp); + public virtual signal void show_now_changed (Indicator.ObjectEntry entry, bool show_now_state); + } + [CCode (cheader_filename = "libindicator/indicator-object.h")] + [Compact] + public class ObjectEntry { + public weak string accessible_desc; + public weak Gtk.Image image; + public weak Gtk.Label label; + public weak Gtk.Menu menu; + public weak string name_hint; + public weak Indicator.Object parent_object; + public static void activate (Indicator.Object io, Indicator.ObjectEntry entry, uint timestamp); + public static void activate_window (Indicator.Object io, Indicator.ObjectEntry entry, uint windowid, uint timestamp); + public static void close (Indicator.Object io, Indicator.ObjectEntry entry, uint timestamp); + } + [CCode (cheader_filename = "libindicator/indicator-service.h", type_check_function = "INDICATOR_IS_SERVICE", type_id = "indicator_service_get_type")] + public class Service : GLib.Object { + [CCode (has_construct_function = false)] + public Service (string name); + [CCode (cname = "indicator_service_new_version", has_construct_function = false)] + public Service.with_version (string name, uint version); + [NoAccessorMethod] + public string name { owned get; set; } + [NoAccessorMethod] + public uint version { get; set; } + public virtual signal void shutdown (); + } + [CCode (cheader_filename = "libindicator/indicator-service-manager.h", type_check_function = "INDICATOR_IS_SERVICE_MANAGER", type_id = "indicator_service_manager_get_type")] + public class ServiceManager : GLib.Object { + [CCode (has_construct_function = false)] + public ServiceManager (string dbus_name); + public bool connected (); + public void set_refresh (uint time_in_ms); + [CCode (cname = "indicator_service_manager_new_version", has_construct_function = false)] + public ServiceManager.with_version (string dbus_name, uint version); + [NoAccessorMethod] + public string name { owned get; set; } + [NoAccessorMethod] + public uint version { get; set; } + public virtual signal void connection_change (bool connected); + } + [CCode (cheader_filename = "libindicator/indicator-object.h", cprefix = "INDICATOR_OBJECT_SCROLL_", has_type_id = false)] + public enum ScrollDirection { + UP, + DOWN, + LEFT, + RIGHT + } + [CCode (cheader_filename = "libindicator/indicator.h", has_target = false)] + public delegate GLib.Type get_type_t (); + [CCode (cheader_filename = "libindicator/indicator.h", has_target = false)] + public delegate unowned string get_version_t (); + [CCode (cheader_filename = "libindicator/indicator.h")] + public const string GET_TYPE_S; + [CCode (cheader_filename = "libindicator/indicator.h")] + public const string GET_VERSION_S; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_DEFAULT_VISIBILITY; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_ENTRY_ADDED; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_ENTRY_MOVED; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_ENTRY_REMOVED; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_ENTRY_SCROLLED; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_MENU_SHOW; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_SECONDARY_ACTIVATE; + [CCode (cheader_filename = "libindicator/indicator-gobject.h")] + public const string OBJECT_SIGNAL_SHOW_NOW_CHANGED; + [CCode (cheader_filename = "libindicator/indicator-service-manager.h")] + public const string SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE; + [CCode (cheader_filename = "libindicator/indicator-service.h")] + public const string SERVICE_SIGNAL_SHUTDOWN; + [CCode (cheader_filename = "libindicator/indicator.h")] + public const int SET_VERSION; + [CCode (cheader_filename = "libindicator/indicator.h")] + public const string VERSION; + [CCode (cheader_filename = "libindicator/indicator.h", cname = "get_version")] + public static unowned string get_version (); + [CCode (cheader_filename = "libindicator/indicator-image-helper.h")] + public static unowned Gtk.Image image_helper (string name); + [CCode (cheader_filename = "libindicator/indicator-image-helper.h")] + public static void image_helper_update (Gtk.Image image, string name); +} \ No newline at end of file -- cgit v1.2.3 From a0616908a817d6fad47c29ae703fc8a2ea379af6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 9 Aug 2013 18:23:50 -0500 Subject: remove the libindicator vapi file; it's no longer used. --- vapi/indicator3-0.4.vapi | 145 ----------------------------------------------- 1 file changed, 145 deletions(-) delete mode 100644 vapi/indicator3-0.4.vapi (limited to 'vapi') diff --git a/vapi/indicator3-0.4.vapi b/vapi/indicator3-0.4.vapi deleted file mode 100644 index 44204cd..0000000 --- a/vapi/indicator3-0.4.vapi +++ /dev/null @@ -1,145 +0,0 @@ -/* indicator-0.4.vapi generated by vapigen, do not modify. */ - -namespace Indicator { - [CCode (cheader_filename = "libindicator/indicator-desktop-shortcuts.h", type_check_function = "INDICATOR_IS_DESKTOP_SHORTCUTS", type_id = "indicator_desktop_shortcuts_get_type")] - public class DesktopShortcuts : GLib.Object { - [CCode (has_construct_function = false)] - public DesktopShortcuts (string file, string identity); - public unowned string get_nicks (); - public bool nick_exec (string nick); - public unowned string nick_get_name (string nick); - public string desktop_file { construct; } - [NoAccessorMethod] - public string identity { owned get; construct; } - } - [CCode (cheader_filename = "libindicator/indicator-object.h", type_check_function = "INDICATOR_IS_OBJECT", type_id = "indicator_object_get_type ()")] - public class Object : GLib.Object { - [CCode (has_construct_function = false)] - public Object (); - public bool check_environment (string env); - [NoWrapper] - public virtual void entry_activate (Indicator.ObjectEntry entry, uint timestamp); - [NoWrapper] - public virtual void entry_activate_window (Indicator.ObjectEntry entry, uint windowid, uint timestamp); - [NoWrapper] - public virtual void entry_being_removed (Indicator.ObjectEntry entry); - [NoWrapper] - public virtual void entry_close (Indicator.ObjectEntry entry, uint timestamp); - [NoWrapper] - public virtual void entry_was_added (Indicator.ObjectEntry entry); - [CCode (has_construct_function = false)] - public Object.from_file (string file); - [NoWrapper] - public virtual signal unowned string get_accessible_desc (); - public virtual GLib.List get_entries (); - public unowned string[] get_environment (); - [NoWrapper] - public virtual unowned Gtk.Image get_image (); - [NoWrapper] - public virtual unowned Gtk.Label get_label (); - public virtual uint get_location (Indicator.ObjectEntry entry); - [NoWrapper] - public virtual unowned Gtk.Menu get_menu (); - [NoWrapper] - public virtual unowned string get_name_hint (); - public virtual bool get_show_now (Indicator.ObjectEntry entry); - public void set_environment (string[] env); - public void set_visible (bool visible); - [NoAccessorMethod] - public bool indicator_object_default_visibility { get; set; } - public virtual signal void accessible_desc_update (Indicator.ObjectEntry entry); - public virtual signal void entry_added (Indicator.ObjectEntry entry); - public virtual signal void entry_moved (Indicator.ObjectEntry entry, uint old_pos, uint new_pos); - public virtual signal void entry_removed (Indicator.ObjectEntry entry); - public virtual signal void entry_scrolled (Indicator.ObjectEntry entry, uint delta, Indicator.ScrollDirection direction); - public virtual signal void menu_show (Indicator.ObjectEntry entry, uint timestamp); - public virtual signal void secondary_activate (Indicator.ObjectEntry entry, uint timestamp); - public virtual signal void show_now_changed (Indicator.ObjectEntry entry, bool show_now_state); - } - [CCode (cheader_filename = "libindicator/indicator-object.h")] - [Compact] - public class ObjectEntry { - public weak string accessible_desc; - public weak Gtk.Image image; - public weak Gtk.Label label; - public weak Gtk.Menu menu; - public weak string name_hint; - public weak Indicator.Object parent_object; - public static void activate (Indicator.Object io, Indicator.ObjectEntry entry, uint timestamp); - public static void activate_window (Indicator.Object io, Indicator.ObjectEntry entry, uint windowid, uint timestamp); - public static void close (Indicator.Object io, Indicator.ObjectEntry entry, uint timestamp); - } - [CCode (cheader_filename = "libindicator/indicator-service.h", type_check_function = "INDICATOR_IS_SERVICE", type_id = "indicator_service_get_type")] - public class Service : GLib.Object { - [CCode (has_construct_function = false)] - public Service (string name); - [CCode (cname = "indicator_service_new_version", has_construct_function = false)] - public Service.with_version (string name, uint version); - [NoAccessorMethod] - public string name { owned get; set; } - [NoAccessorMethod] - public uint version { get; set; } - public virtual signal void shutdown (); - } - [CCode (cheader_filename = "libindicator/indicator-service-manager.h", type_check_function = "INDICATOR_IS_SERVICE_MANAGER", type_id = "indicator_service_manager_get_type")] - public class ServiceManager : GLib.Object { - [CCode (has_construct_function = false)] - public ServiceManager (string dbus_name); - public bool connected (); - public void set_refresh (uint time_in_ms); - [CCode (cname = "indicator_service_manager_new_version", has_construct_function = false)] - public ServiceManager.with_version (string dbus_name, uint version); - [NoAccessorMethod] - public string name { owned get; set; } - [NoAccessorMethod] - public uint version { get; set; } - public virtual signal void connection_change (bool connected); - } - [CCode (cheader_filename = "libindicator/indicator-object.h", cprefix = "INDICATOR_OBJECT_SCROLL_", has_type_id = false)] - public enum ScrollDirection { - UP, - DOWN, - LEFT, - RIGHT - } - [CCode (cheader_filename = "libindicator/indicator.h", has_target = false)] - public delegate GLib.Type get_type_t (); - [CCode (cheader_filename = "libindicator/indicator.h", has_target = false)] - public delegate unowned string get_version_t (); - [CCode (cheader_filename = "libindicator/indicator.h")] - public const string GET_TYPE_S; - [CCode (cheader_filename = "libindicator/indicator.h")] - public const string GET_VERSION_S; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_DEFAULT_VISIBILITY; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_ENTRY_ADDED; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_ENTRY_MOVED; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_ENTRY_REMOVED; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_ENTRY_SCROLLED; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_MENU_SHOW; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_SECONDARY_ACTIVATE; - [CCode (cheader_filename = "libindicator/indicator-gobject.h")] - public const string OBJECT_SIGNAL_SHOW_NOW_CHANGED; - [CCode (cheader_filename = "libindicator/indicator-service-manager.h")] - public const string SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE; - [CCode (cheader_filename = "libindicator/indicator-service.h")] - public const string SERVICE_SIGNAL_SHUTDOWN; - [CCode (cheader_filename = "libindicator/indicator.h")] - public const int SET_VERSION; - [CCode (cheader_filename = "libindicator/indicator.h")] - public const string VERSION; - [CCode (cheader_filename = "libindicator/indicator.h", cname = "get_version")] - public static unowned string get_version (); - [CCode (cheader_filename = "libindicator/indicator-image-helper.h")] - public static unowned Gtk.Image image_helper (string name); - [CCode (cheader_filename = "libindicator/indicator-image-helper.h")] - public static void image_helper_update (Gtk.Image image, string name); -} \ No newline at end of file -- cgit v1.2.3