Top | ![]() |
![]() |
![]() |
![]() |
gboolean | cd_device_connect_sync () |
gboolean | cd_device_set_property_sync () |
gboolean | cd_device_add_profile_sync () |
gboolean | cd_device_remove_profile_sync () |
CdProfile * | cd_device_get_profile_for_qualifiers_sync () |
gboolean | cd_device_make_profile_default_sync () |
gboolean | cd_device_profiling_inhibit_sync () |
gboolean | cd_device_profiling_uninhibit_sync () |
CdDeviceRelation | cd_device_get_profile_relation_sync () |
gboolean | cd_device_set_enabled_sync () |
gboolean | cd_device_set_model_sync () |
gboolean | cd_device_set_serial_sync () |
gboolean | cd_device_set_vendor_sync () |
gboolean | cd_device_set_kind_sync () |
gboolean | cd_device_set_colorspace_sync () |
gboolean | cd_device_set_mode_sync () |
These helper functions provide a simple way to use the async functions in command line tools.
See also: CdDevice
gboolean cd_device_connect_sync (CdDevice *device
,GCancellable *cancellable
,GError **error
);
Connects to the object and fills up initial properties.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.8
gboolean cd_device_set_property_sync (CdDevice *device
,const gchar *key
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Sets an object property.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.8
gboolean cd_device_add_profile_sync (CdDevice *device
,CdDeviceRelation relation
,CdProfile *profile
,GCancellable *cancellable
,GError **error
);
Adds a profile to a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.3
gboolean cd_device_remove_profile_sync (CdDevice *device
,CdProfile *profile
,GCancellable *cancellable
,GError **error
);
Removes a profile from a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.2
CdProfile * cd_device_get_profile_for_qualifiers_sync (CdDevice *device
,const gchar **qualifiers
,GCancellable *cancellable
,GError **error
);
Gets the prefered profile for some qualifiers.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.8
gboolean cd_device_make_profile_default_sync (CdDevice *device
,CdProfile *profile
,GCancellable *cancellable
,GError **error
);
Makes an already added profile default for a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.8
gboolean cd_device_profiling_inhibit_sync (CdDevice *device
,GCancellable *cancellable
,GError **error
);
Sets up the device for profiling and causes no profiles to be
returned if cd_device_get_profile_for_qualifiers_sync()
is used.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.1
gboolean cd_device_profiling_uninhibit_sync (CdDevice *device
,GCancellable *cancellable
,GError **error
);
Sets up the device for profiling and causes no profiles to be
returned if cd_device_get_profile_for_qualifiers_sync()
is used.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.1
CdDeviceRelation cd_device_get_profile_relation_sync (CdDevice *device
,CdProfile *profile
,GCancellable *cancellable
,GError **error
);
Gets the property relationship to the device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.8
gboolean cd_device_set_enabled_sync (CdDevice *device
,gboolean enabled
,GCancellable *cancellable
,GError **error
);
Enables or disables a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.26
gboolean cd_device_set_model_sync (CdDevice *device
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Sets the device model.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.0
gboolean cd_device_set_serial_sync (CdDevice *device
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Sets the device serial number.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.1
gboolean cd_device_set_vendor_sync (CdDevice *device
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Sets the device vendor.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.1
gboolean cd_device_set_kind_sync (CdDevice *device
,CdDeviceKind kind
,GCancellable *cancellable
,GError **error
);
Sets the device kind.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.0
gboolean cd_device_set_colorspace_sync (CdDevice *device
,CdColorspace colorspace
,GCancellable *cancellable
,GError **error
);
Sets the device kind.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Since 0.1.1