Browse Source

devicemanager: signal device capabilities added

bboozzoo/pairing-fixes
Maciek Borzecki 8 years ago
parent
commit
3a82d95223
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/mconnect/devicemanager.vala

+ 6
- 1
src/mconnect/devicemanager.vala View File

@ -22,6 +22,9 @@ using Gee;
class DeviceManager : GLib.Object
{
public signal void found_new_device(Device dev);
public signal void device_capability_added(Device dev,
string capability,
PacketHandlerInterface handler);
public const string DEVICES_CACHE_FILE = "devices";
@ -198,7 +201,9 @@ class DeviceManager : GLib.Object
private void enable_protocol_handlers(Device dev) {
var core = Core.instance();
core.handlers.use_device(dev);
core.handlers.use_device(dev, (cap, handler) => {
device_capability_added(dev, cap, handler);
});
}
private void disable_protocol_handlers(Device dev) {


Loading…
Cancel
Save