Browse Source

device: add is_active property

indicated is communication with device is possible
bboozzoo/dbus-support-interfaces
Maciek Borzecki 8 years ago
parent
commit
b06936c506
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/mconnect/device.vala

+ 5
- 0
src/mconnect/device.vala View File

@ -36,6 +36,11 @@ class Device : Object {
public InetAddress host { get; private set; default = null; } public InetAddress host { get; private set; default = null; }
public bool is_paired { get; private set; default = false; } public bool is_paired { get; private set; default = false; }
public bool allowed {get; set; default = false; } public bool allowed {get; set; default = false; }
public bool is_active {
get { return (_channel != null); }
set {}
default = false;
}
// set to true if pair request was sent // set to true if pair request was sent
private bool _pair_in_progress = false; private bool _pair_in_progress = false;


Loading…
Cancel
Save