Top |
#define | CD_CLIENT_ERROR |
#define | CD_CLIENT_TYPE_ERROR |
#define | CD_TYPE_CLIENT |
struct | CdClientClass |
CdClient |
A helper GObject to use for accessing colord information, and to be notified when it is changed.
See also: CdDevice
void cd_client_connect (CdClient *client
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Connects to the colord daemon.
client |
a CdClient instance |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.6
gboolean cd_client_connect_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.6
void cd_client_create_device (CdClient *client
,const gchar *id
,CdObjectScope scope
,GHashTable *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Creates a color device.
client |
a CdClient instance. |
|
id |
identifier for the device |
|
scope |
the scope of the device |
|
properties |
properties to
set on the device, or |
[element-type utf8 utf8][allow-none] |
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdDevice * cd_client_create_device_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_create_profile (CdClient *client
,const gchar *id
,CdObjectScope scope
,GHashTable *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Creates a color profile.
client |
a CdClient instance. |
|
id |
identifier for the profile |
|
scope |
the scope of the profile |
|
properties |
properties to
set on the profile, or |
[element-type utf8 utf8][allow-none] |
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdProfile * cd_client_create_profile_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_create_profile_for_icc (CdClient *client
,CdIcc *icc
,CdObjectScope scope
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Creates a color profile for an CdIcc Object.
client |
a CdClient instance. |
|
icc |
CdIcc object |
|
scope |
the scope of the profile |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 1.1.1
CdProfile * cd_client_create_profile_for_icc_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 1.1.1
void cd_client_import_profile (CdClient *client
,GFile *file
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Imports a color profile into the users home directory.
If the profile should be accessible for all users, then call
cd_profile_install_system_wide()
on the result.
client |
a CdClient instance. |
|
file |
a GFile |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.12
CdProfile * cd_client_import_profile_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.12
void cd_client_delete_device (CdClient *client
,CdDevice *device
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Deletes a device.
client |
a CdClient instance. |
|
device |
a CdDevice |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_client_delete_device_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_delete_profile (CdClient *client
,CdProfile *profile
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Deletes a profile.
client |
a CdClient instance. |
|
profile |
||
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_client_delete_profile_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_find_device (CdClient *client
,const gchar *id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a device by an ID.
client |
a CdClient instance. |
|
id |
a device id |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdDevice * cd_client_find_device_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_find_device_by_property (CdClient *client
,const gchar *key
,const gchar *value
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a color device that has a property value.
client |
a CdClient instance. |
|
key |
the device property key |
|
value |
the device property value |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdDevice * cd_client_find_device_by_property_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_find_profile (CdClient *client
,const gchar *id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a profile by an ID.
client |
a CdClient instance. |
|
id |
a profile id |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdProfile * cd_client_find_profile_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_find_profile_by_filename (CdClient *client
,const gchar *filename
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a profile by a filename.
client |
a CdClient instance. |
|
filename |
a profile filename |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdProfile * cd_client_find_profile_by_filename_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_get_standard_space (CdClient *client
,CdStandardSpace standard_space
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a standard profile space.
client |
a CdStandardSpace instance. |
|
standard_space |
a profile id |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
CdProfile * cd_client_get_standard_space_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_get_devices (CdClient *client
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets an array of color devices.
client |
a CdClient instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
GPtrArray * cd_client_get_devices_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_get_devices_by_kind (CdClient *client
,CdDeviceKind kind
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets an array of color devices.
client |
a CdClient instance. |
|
kind |
the type of device. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
GPtrArray * cd_client_get_devices_by_kind_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_get_profiles (CdClient *client
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets an array of color profiles.
client |
a CdClient instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
GPtrArray * cd_client_get_profiles_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_get_sensors (CdClient *client
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets an array of color sensors.
client |
a CdClient instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
GPtrArray * cd_client_get_sensors_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_client_find_profile_by_property (CdClient *client
,const gchar *key
,const gchar *value
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a color profile that has a property value.
client |
a CdClient instance. |
|
key |
the profile property key |
|
value |
the profile property value |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.24
CdProfile * cd_client_find_profile_by_property_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.24
void cd_client_find_sensor (CdClient *client
,const gchar *id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Finds a sensor by an ID.
client |
a CdClient instance. |
|
id |
a sensor id |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.26
CdSensor * cd_client_find_sensor_finish (CdClient *client
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.26
gboolean
cd_client_get_connected (CdClient *client
);
Gets if the client has been connected.
Since: 0.1.9
gboolean
cd_client_get_has_server (CdClient *client
);
Gets if the colord server is currently running. WARNING: This function may block for up to 5 seconds waiting for the daemon to start if it is not already running.
Since: 0.1.12
const gchar *
cd_client_get_daemon_version (CdClient *client
);
Get colord daemon version.
Since: 0.1.0
const gchar *
cd_client_get_system_vendor (CdClient *client
);
Get system vendor.
Since: 1.0.2
struct CdClientClass { GObjectClass parent_class; void (*device_added) (CdClient *client, CdDevice *device); void (*device_removed) (CdClient *client, CdDevice *device); void (*device_changed) (CdClient *client, CdDevice *device); void (*profile_added) (CdClient *client, CdProfile *profile); void (*profile_removed) (CdClient *client, CdProfile *profile); void (*profile_changed) (CdClient *client, CdProfile *profile); void (*sensor_added) (CdClient *client, CdSensor *sensor); void (*sensor_removed) (CdClient *client, CdSensor *sensor); void (*sensor_changed) (CdClient *client, CdSensor *sensor); void (*changed) (CdClient *client); };