Client
Object Hierarchy:
Description:
Namespace: Cd
Package: colord
Content:
Properties:
- public string connected { get; }
The if the object path has been connected as is valid for use.
- public string daemon_version { get; }
The daemon version.
- public string system_model { get; }
The system model.
- public string system_vendor { get; }
The system vendor.
Static methods:
- public static ClientError error_from_string (string error_desc)
Converts a string to a ClientError.
- public static Quark error_quark ()
- public static unowned string error_to_string (ClientError error_enum)
Converts a ClientError to a string.
Creation methods:
- public Client ()
Creates a new Client object.
Methods:
- public async bool connect (Cancellable? cancellable) throws Error
Connects to the colord daemon.
- public bool connect_sync (Cancellable? cancellable = null) throws Error
Connects to the colord daemon.
- public async Device create_device (string id, ObjectScope scope, HashTable<string,string>? properties, Cancellable? cancellable) throws Error
Creates a color device.
- public Device create_device_sync (string id, ObjectScope scope, HashTable<string,string>? properties, Cancellable? cancellable = null) throws Error
Creates a color device.
- public async Profile create_profile (string id, ObjectScope scope, HashTable<string,string>? properties, Cancellable? cancellable) throws Error
Creates a color profile.
- public async Profile create_profile_for_icc (Icc icc, ObjectScope scope, Cancellable? cancellable) throws Error
Creates a color profile for an Icc Object.
- public Profile create_profile_for_icc_sync (Icc icc, ObjectScope scope, Cancellable? cancellable = null) throws Error
Creates a color profile from a Icc object.
- public Profile create_profile_sync (string id, ObjectScope scope, HashTable<string,string>? properties, Cancellable? cancellable = null) throws Error
Creates a color profile.
- public async bool delete_device (Device device, Cancellable? cancellable) throws Error
Deletes a device.
- public bool delete_device_sync (Device device, Cancellable? cancellable = null) throws Error
Deletes a color device.
- public async bool delete_profile (Profile profile, Cancellable? cancellable) throws Error
Deletes a profile.
- public bool delete_profile_sync (Profile profile, Cancellable? cancellable = null) throws Error
Deletes a color profile.
- public async Device find_device (string id, Cancellable? cancellable) throws Error
Finds a device by an ID.
- public async Device find_device_by_property (string key, string value, Cancellable? cancellable) throws Error
Finds a color device that has a property value.
- public Device find_device_by_property_sync (string key, string value, Cancellable? cancellable = null) throws Error
Finds a color device that has a property value.
- public Device find_device_sync (string id, Cancellable? cancellable = null) throws Error
Finds a color device.
- public async Profile find_profile (string id, Cancellable? cancellable) throws Error
Finds a profile by an ID.
- public async Profile find_profile_by_filename (string filename, Cancellable? cancellable) throws Error
Finds a profile by a filename.
- public Profile find_profile_by_filename_sync (string filename, Cancellable? cancellable = null) throws Error
Finds a color profile from its filename.
- public async Profile find_profile_by_property (string key, string value, Cancellable? cancellable) throws Error
Finds a color profile that has a property value.
- public Profile find_profile_by_property_sync (string key, string value, Cancellable? cancellable = null) throws Error
Finds a color profile that has a property value.
- public Profile find_profile_sync (string id, Cancellable? cancellable = null) throws Error
Finds a color profile from its id.
- public async Sensor find_sensor (string id, Cancellable? cancellable) throws Error
Finds a sensor by an ID.
- public Sensor find_sensor_sync (string id, Cancellable? cancellable = null) throws Error
Finds a color sensor.
- public bool get_connected ()
Gets if the client has been connected.
- public unowned string get_daemon_version ()
Get colord daemon version.
- public async GenericArray<Device> get_devices (Cancellable? cancellable) throws Error
Gets an array of color devices.
- public async GenericArray<Device> get_devices_by_kind (DeviceKind kind, Cancellable? cancellable) throws Error
Gets an array of color devices.
- public GenericArray<unowned Device> get_devices_by_kind_sync (DeviceKind kind, Cancellable? cancellable = null) throws Error
Get an array of the device objects of a specified kind.
- public GenericArray<unowned Device> get_devices_sync (Cancellable? cancellable = null) throws Error
Get an array of the device objects.
- public bool get_has_server ()
Gets if the colord server is currently running.
- public async GenericArray<unowned Profile> get_profiles (Cancellable? cancellable) throws Error
Gets an array of color profiles.
- public GenericArray<unowned Profile> get_profiles_sync (Cancellable? cancellable = null) throws Error
Get an array of the profile objects.
- public async GenericArray<Sensor> get_sensors (Cancellable? cancellable) throws Error
Gets an array of color sensors.
- public GenericArray<unowned Sensor> get_sensors_sync (Cancellable? cancellable = null) throws Error
Get an array of the sensor objects.
- public async Profile get_standard_space (StandardSpace standard_space, Cancellable? cancellable) throws Error
Finds a standard profile space.
- public Profile get_standard_space_sync (StandardSpace standard_space, Cancellable? cancellable = null) throws Error
Finds a standard colorspace.
- public unowned string get_system_model ()
Get system model.
- public unowned string get_system_vendor ()
Get system vendor.
- public async Profile import_profile (File file, Cancellable? cancellable) throws Error
Imports a color profile into the users home directory.
- public Profile import_profile_sync (File file, Cancellable? cancellable = null) throws Error
Imports a color profile into the users home directory.
Signals:
- public virtual signal void changed ()
The changed signal is emitted when properties may have changed.
- public virtual signal void device_added (Device device)
The device_added signal is emitted when a device is added.
- public virtual signal void device_changed (Device device)
The device_changed signal is emitted when a device is changed.
- public virtual signal void device_removed (Device device)
The device_removed signal is emitted when a device is removed.
- public virtual signal void profile_added (Profile profile)
The profile_added signal is emitted when a profile is added.
- public virtual signal void profile_changed (Profile profile)
The profile_changed signal is emitted when a profile is changed.
- public virtual signal void profile_removed (Profile profile)
The profile_added signal is emitted when a profile is removed.
- public virtual signal void sensor_added (Sensor sensor)
The sensor_added signal is emitted when a sensor is added.
- public virtual signal void sensor_changed (Sensor sensor)
The sensor_changed signal is emitted when a sensor is changed.
- public virtual signal void sensor_removed (Sensor sensor)
The sensor_added signal is emitted when a sensor is removed.
Inherited Members:
All known members inherited from class GLib.Object