- public async bool add_profile (DeviceRelation relation, Profile profile, Cancellable? cancellable) throws Error
Adds a profile to a device.
- public bool add_profile_sync (DeviceRelation relation, Profile profile, Cancellable? cancellable = null) throws Error
Adds a profile to a device.
- public async bool connect (Cancellable? cancellable) throws Error
Connects to the object and fills up initial properties.
- public bool connect_sync (Cancellable? cancellable = null) throws Error
Connects to the object and fills up initial properties.
- public bool equal (Device device2)
Tests two devices for equality.
- public Colorspace get_colorspace ()
Gets the device colorspace.
- public bool get_connected ()
Gets if the device has been connected.
- public uint64 get_created ()
Gets the device creation date.
- public Profile get_default_profile ()
Gets the default device profile.
- public bool get_embedded ()
Returns if the device is embedded in the computer and cannot be
removed.
- public bool get_enabled ()
Gets the device enabled state.
- public unowned string get_format ()
Gets the device format.
- public unowned string get_id ()
Gets the device ID.
- public DeviceKind get_kind ()
Gets the device kind.
- public HashTable<unowned string,unowned string> get_metadata ()
Returns the device metadata.
- public unowned string get_metadata_item (string key)
Returns the device metadata for a specific key.
- public DeviceMode get_mode ()
Gets the device mode.
- public unowned string get_model ()
Gets the device model.
- public uint64 get_modified ()
Gets the device modified date.
- public unowned string get_object_path ()
Gets the object path for the device.
- public uint get_owner ()
Gets the device owner.
- public async Profile get_profile_for_qualifiers (string qualifiers, Cancellable? cancellable) throws Error
Gets the preferred profile for some qualifiers.
- public Profile get_profile_for_qualifiers_sync (string qualifiers, Cancellable? cancellable = null) throws Error
Gets the preferred profile for some qualifiers.
- public async DeviceRelation get_profile_relation (Profile profile, Cancellable? cancellable) throws Error
Gets the property relationship to the device.
- public DeviceRelation get_profile_relation_sync (Profile profile, Cancellable? cancellable = null) throws Error
Gets the property relationship to the device.
- public GenericArray<unowned Profile> get_profiles ()
Gets the device profiles.
- public unowned string[] get_profiling_inhibitors ()
Gets any profiling inhibitors for the device.
- public ObjectScope get_scope ()
Gets the device scope.
- public unowned string get_seat ()
Gets the device seat identifier.
- public unowned string get_serial ()
Gets the device serial number.
- public unowned string get_vendor ()
Gets the device vendor.
- public async bool make_profile_default (Profile profile, Cancellable? cancellable) throws Error
Makes an already added profile default for a device.
- public bool make_profile_default_sync (Profile profile, Cancellable? cancellable = null) throws Error
Makes an already added profile default for a device.
- public async bool profiling_inhibit (Cancellable? cancellable) throws Error
- public bool profiling_inhibit_sync (Cancellable? cancellable = null) throws Error
- public async bool profiling_uninhibit (Cancellable? cancellable) throws Error
- public bool profiling_uninhibit_sync (Cancellable? cancellable = null) throws Error
- public async bool remove_profile (Profile profile, Cancellable? cancellable) throws Error
Removes a profile from a device.
- public bool remove_profile_sync (Profile profile, Cancellable? cancellable = null) throws Error
Removes a profile from a device.
- public bool set_colorspace_sync (Colorspace colorspace, Cancellable? cancellable = null) throws Error
Sets the device kind.
- public async bool set_enabled (bool enabled, Cancellable? cancellable) throws Error
Enables or disables a device.
- public bool set_enabled_sync (bool enabled, Cancellable? cancellable = null) throws Error
Enables or disables a device.
- public bool set_kind_sync (DeviceKind kind, Cancellable? cancellable = null) throws Error
Sets the device kind.
- public bool set_mode_sync (DeviceMode mode, Cancellable? cancellable = null) throws Error
Sets the device mode.
- public bool set_model_sync (string value, Cancellable? cancellable = null) throws Error
Sets the device model.
- public void set_object_path (string object_path)
Sets the object path of the device.
- public async bool set_property (string key, string value, Cancellable? cancellable) throws Error
Sets a property on the device.
- public bool set_property_sync (string key, string value, Cancellable? cancellable = null) throws Error
Sets an object property.
- public bool set_serial_sync (string value, Cancellable? cancellable = null) throws Error
Sets the device serial number.
- public bool set_vendor_sync (string value, Cancellable? cancellable = null) throws Error
Sets the device vendor.
- public string to_string ()
Converts the device to a string description.