Device
Object Hierarchy:
Description:
Namespace: Cd
Package: colord
Content:
Properties:
- public uint colorspace { get; }
The device colorspace, e.
- public string connected { get; }
The if the object path has been connected as is valid for use.
- public uint64 created { get; }
The time the device was created.
- public string embedded { get; }
If the device is embedded in the device and cannot be removed.
- public bool enabled { get; }
The device enabled state.
- public string format { get; }
The device format.
- public string id { get; }
The device ID.
- public uint kind { get; }
The device kind, e.
- public uint mode { get; }
The device colorspace, e.
- public string model { get; }
The device model.
- public uint64 modified { get; }
The last time the device was modified.
- public string object_path { get; set construct; }
The object path of the remote object
- public uint owner { get; }
The device owner, e.
- public string[] profiling_inhibitors { get; }
- public uint scope { get; }
The device scope, e.
- public string seat { get; }
The device seat identifier.
- public string serial { get; }
The device serial number.
- public string vendor { get; }
The device vendor.
Static methods:
- public static DeviceError error_from_string (string error_desc)
Converts a string to a DeviceError.
- public static Quark error_quark ()
- public static unowned string error_to_string (DeviceError error_enum)
Converts a DeviceError to a string.
- public static DeviceKind kind_from_string (string kind)
Converts a string to a DeviceKind.
- public static ProfileKind kind_to_profile_kind (DeviceKind device_kind)
Gets the most suitable profile kind for a device kind.
- public static unowned string kind_to_string (DeviceKind kind_enum)
Converts a DeviceKind to a string.
- public static DeviceMode mode_from_string (string device_mode)
- public static unowned string mode_to_string (DeviceMode device_mode)
- public static DeviceRelation relation_from_string (string device_relation)
- public static unowned string relation_to_string (DeviceRelation device_relation)
Creation methods:
- public Device ()
Creates a new Device object.
- public Device.with_object_path (string object_path)
Creates a new Device object with a known object path.
Methods:
- 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
Sets up the device for profiling and causes no profiles to be returned if get_profile_for_qualifiers_sync is used.
- public bool profiling_inhibit_sync (Cancellable? cancellable = null) throws Error
Sets up the device for profiling and causes no profiles to be returned if get_profile_for_qualifiers_sync is used.
- public async bool profiling_uninhibit (Cancellable? cancellable) throws Error
Restores the device after profiling and causes normal profiles to be returned if get_profile_for_qualifiers_sync is used.
- public bool profiling_uninhibit_sync (Cancellable? cancellable = null) throws Error
Sets up the device for profiling and causes no profiles to be returned if get_profile_for_qualifiers_sync is used.
- 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.
Signals:
- public virtual signal void changed ()
The changed signal is emitted when the device data has changed.
Inherited Members:
All known members inherited from class GLib.Object