| Top |
| guint | colorspace | Read |
| gchar * | connected | Read |
| guint64 | created | Read |
| gchar * | embedded | Read |
| gboolean | enabled | Read |
| gchar * | format | Read |
| gchar * | id | Read |
| guint | kind | Read |
| guint | mode | Read |
| gchar * | model | Read |
| guint64 | modified | Read |
| gchar * | object-path | Read / Write / Construct |
| guint | owner | Read |
| GStrv | profiling-inhibitors | Read |
| guint | scope | Read |
| gchar * | seat | Read |
| gchar * | serial | Read |
| gchar * | vendor | Read |
| #define | CD_DEVICE_ERROR |
| #define | CD_DEVICE_TYPE_ERROR |
| #define | CD_TYPE_DEVICE |
| struct | CdDeviceClass |
| CdDevice |
A helper GObject to use for accessing colord devices, and to be notified when it is changed.
See also: CdClient
CdDevice *
cd_device_new_with_object_path (const gchar *object_path);
Creates a new CdDevice object with a known object path.
Since: 0.1.8
void cd_device_connect (CdDevice *device,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Connects to the object and fills up initial properties.
device |
a CdDevice instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_connect_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_set_property (CdDevice *device,const gchar *key,const gchar *value,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Sets a property on the device.
device |
a CdDevice instance. |
|
key |
a property key |
|
value |
a property key |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_set_property_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_add_profile (CdDevice *device,CdDeviceRelation relation,CdProfile *profile,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Adds a profile to a device.
device |
a CdDevice instance. |
|
relation |
a CdDeviceRelation, e.g. CD_DEVICE_RELATION_HARD |
|
profile |
a CdProfile instance |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_add_profile_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_remove_profile (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Removes a profile from a device.
device |
a CdDevice instance. |
|
profile |
a CdProfile instance |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_remove_profile_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_make_profile_default (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Makes an already added profile default for a device.
device |
a CdDevice instance. |
|
profile |
a CdProfile instance |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_make_profile_default_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_profiling_inhibit (CdDevice *device,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Sets up the device for profiling and causes no profiles to be
returned if cd_device_get_profile_for_qualifiers_sync() is used.
device |
a CdDevice instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_profiling_inhibit_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_set_enabled (CdDevice *device,gboolean enabled,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Enables or disables a device.
device |
a CdDevice instance. |
|
enabled |
the enabled state |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.26
gboolean cd_device_set_enabled_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.26
void cd_device_profiling_uninhibit (CdDevice *device,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Restores the device after profiling and causes normal profiles to be
returned if cd_device_get_profile_for_qualifiers_sync() is used.
device |
a CdDevice instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_device_profiling_uninhibit_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_get_profile_for_qualifiers (CdDevice *device,const gchar **qualifiers,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Gets the prefered profile for some qualifiers.
device |
a CdDevice instance. |
|
qualifiers |
a set of qualifiers that can included wildcards |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdProfile * cd_device_get_profile_for_qualifiers_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_device_get_profile_relation (CdDevice *device,CdProfile *profile,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Gets the property relationship to the device.
device |
a CdDevice instance. |
|
profile |
a CdProfile instance |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdDeviceRelation cd_device_get_profile_relation_finish (CdDevice *device,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
Since: 0.1.8
const gchar *
cd_device_get_id (CdDevice *device);
Gets the device ID.
Since: 0.1.0
const gchar *
cd_device_get_model (CdDevice *device);
Gets the device model.
Since: 0.1.0
const gchar *
cd_device_get_vendor (CdDevice *device);
Gets the device vendor.
Since: 0.1.1
const gchar *
cd_device_get_serial (CdDevice *device);
Gets the device serial number.
Since: 0.1.0
const gchar *
cd_device_get_seat (CdDevice *device);
Gets the device seat identifier.
Since: 0.1.24
const gchar *
cd_device_get_format (CdDevice *device);
Gets the device format.
Since: 0.1.9
const gchar **
cd_device_get_profiling_inhibitors (CdDevice *device);
Gets any profiling inhibitors for the device.
Since: 0.1.17
guint64
cd_device_get_created (CdDevice *device);
Gets the device creation date.
Since: 0.1.0
guint64
cd_device_get_modified (CdDevice *device);
Gets the device modified date.
Since: 0.1.1
CdDeviceKind
cd_device_get_kind (CdDevice *device);
Gets the device kind.
Since: 0.1.0
CdColorspace
cd_device_get_colorspace (CdDevice *device);
Gets the device colorspace.
Since: 0.1.1
CdDeviceMode
cd_device_get_mode (CdDevice *device);
Gets the device mode.
Since: 0.1.2
gboolean
cd_device_get_enabled (CdDevice *device);
Gets the device enabled state.
Since: 0.1.26
gboolean
cd_device_get_embedded (CdDevice *device);
Returns if the device is embedded in the computer and cannot be removed.
Since: 0.1.27
CdObjectScope
cd_device_get_scope (CdDevice *device);
Gets the device scope.
Since: 0.1.10
guint
cd_device_get_owner (CdDevice *device);
Gets the device owner.
Since: 0.1.13
GPtrArray *
cd_device_get_profiles (CdDevice *device);
Gets the device profiles.
Since: 0.1.0
CdProfile *
cd_device_get_default_profile (CdDevice *device);
Gets the default device profile. A profile will not be returned if the device is being profiled or is disabled.
Since: 0.1.1
const gchar *
cd_device_get_object_path (CdDevice *device);
Gets the object path for the device.
Since: 0.1.0
GHashTable *
cd_device_get_metadata (CdDevice *device);
Returns the device metadata.
Since: 0.1.5
const gchar * cd_device_get_metadata_item (CdDevice *device,const gchar *key);
Returns the device metadata for a specific key.
Since: 0.1.5
void cd_device_set_object_path (CdDevice *device,const gchar *object_path);
Sets the object path of the device.
Since: 0.1.8
gboolean
cd_device_get_connected (CdDevice *device);
Gets if the device has been connected.
Since: 0.1.9
gchar *
cd_device_to_string (CdDevice *device);
Converts the device to a string description.
Since: 0.1.0
struct CdDeviceClass {
GObjectClass parent_class;
void (*changed) (CdDevice *device);
};
“colorspace” property“colorspace” guint
The device colorspace, e.g. CD_COLORSPACE_RGB.
Flags: Read
Default value: 0
Since: 0.1.1
“connected” property“connected” gchar *
The if the object path has been connected as is valid for use.
Flags: Read
Default value: NULL
Since: 0.1.9
“created” property“created” guint64
The time the device was created.
Flags: Read
Default value: 0
Since: 0.1.0
“embedded” property“embedded” gchar *
If the device is embedded in the device and cannot be removed.
Flags: Read
Default value: NULL
Since: 0.1.27
“enabled” property“enabled” gboolean
The device enabled state.
Flags: Read
Default value: FALSE
Since: 0.1.26
“format” property“format” gchar *
The device format.
Flags: Read
Default value: NULL
Since: 0.1.9
“kind” property“kind” guint
The device kind, e.g. CD_DEVICE_KIND_DISPLAY.
Flags: Read
Allowed values: <= 6
Default value: 0
Since: 0.1.0
“mode” property“mode” guint
The device colorspace, e.g. CD_DEVICE_MODE_VIRTUAL.
Flags: Read
Default value: 0
Since: 0.1.2
“modified” property“modified” guint64
The last time the device was modified.
Flags: Read
Default value: 0
Since: 0.1.1
“object-path” property“object-path” gchar *
The object path of the remote object
Flags: Read / Write / Construct
Default value: NULL
Since: 0.1.8
“owner” property“owner” guint
The device owner, e.g. 500.
Flags: Read
Default value: 0
Since: 0.1.13
“scope” property“scope” guint
The device scope, e.g. CD_OBJECT_SCOPE_TEMP.
Flags: Read
Default value: 0
Since: 0.1.10
“seat” property“seat” gchar *
The device seat identifier.
Flags: Read
Default value: NULL
Since: 0.1.24
“serial” property“serial” gchar *
The device serial number.
Flags: Read
Default value: NULL
Since: 0.1.1
“vendor” property“vendor” gchar *
The device vendor.
Flags: Read
Default value: NULL
Since: 0.1.1
“changed” signalvoid user_function (CdDevice *device, gpointer user_data)
The ::changed signal is emitted when the device data has changed.
device |
the CdDevice instance that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.1.0