Browse Source

add device_added, device_removed signals

bboozzoo/dbus-support
Andy Holmes 7 years ago
parent
commit
28c8345eca
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/mconnect/devicemanager-proxy.vala

+ 5
- 0
src/mconnect/devicemanager-proxy.vala View File

@ -24,6 +24,10 @@ class DeviceManagerDBusProxy : Object
{
private DeviceManager manager;
public signal void device_added(string path);
public signal void device_removed(string path);
private const string DBUS_PATH = "/org/mconnect/manager";
private DBusConnection bus = null;
private HashMap<string, DeviceDBusProxy> devices;
@ -111,6 +115,7 @@ class DeviceManagerDBusProxy : Object
info("register device %s under path %s",
dev.to_string(), path);
device_proxy.bus_register(this.bus);
device_added(path);
}
private DeviceDBusProxy? find_proxy_for_device(Device dev) {


Loading…
Cancel
Save