Top |
org.freedesktop.ColorManager.Deviceorg.freedesktop.ColorManager.Device — Device interface |
SetProperty(in's'property_name, in's'property_value) AddProfile(in's'relation, in'o'object_path) RemoveProfile(in'o'object_path) MakeProfileDefault(in'o'profile_path) GetProfileForQualifiers(in'as'qualifiers, out'o'object_path) GetProfileRelation(in'o'object_path, out's'relation) ProfilingInhibit() ProfilingUninhibit() SetEnabled(in'b'enabled)
Objects implementing org.freedesktop.ColorManager.Device also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
'Created'read't' 'Modified'read't' 'Model'read's' 'Serial'read's' 'Vendor'read's' 'Colorspace'read's' 'Kind'read's' 'DeviceId'read's' 'Profiles'read'ao' 'Mode'read's' 'Format'read's' 'Scope'read's' 'Owner'read'u' 'Enabled'read'b' 'Seat'read's' 'Embedded'read'b' 'Metadata'read'a{ss}' 'ProfilingInhibitors'read'as'
Sets a property on the object.
|
The property name, e.g. |
|
The property value, e.g. |
Adds a profile to the device. The profile must have been previously created.
This method also stores the device to profile mapping in a persistent datadase, so that if the device and profile happen to both exist in the future, the profiles are auto-added to the device.
|
The strength of the relationship from profile to device.
This can be
The default option is
If the user makes a |
|
The profile path to add. |
Removes a profile for a device.
This method also removes the device to profile mapping from a persistent datadase, so that if the device and profile happen to both exist in the future, the profiles are no longer auto-added to the device.
If the profile was automatically added due to metadata in the profile (e.g. the profile was created for the device) then manually removing the profile will cause this metadata add to be supressed. This allows the user to remove old or obsolete profiles from any color control panel without having to delete them.
|
The profile path that has already been added to the device. |
Sets the default profile for a device.
|
The profile path that has already been added to the device. |
Gets a single profile object path for a qualifier. The search term can contain '*' and '?' wildcards.
|
An array of qualifiers, e.g.
If the qualifier |
|
The profile path for the search terms. |
Gets a profile relation for a given profile that has been added to this device.
|
A profile object path. |
|
The profile to device relation, e.g. |
Adds an inhibit on all profiles for this device. This means
that any calls to GetProfileForQualifier
will always match no profiles.
This method will be used when creating profiles for devices, where the session color manager wants to be very sure that no profiles are being applied wen displaying color samples or printing color swatches.
If the calling program exits without calling
ProfilingUninhibit
then the inhibit is
automatically removed.
Removes an inhibit on the device. This method should be used when profiling has finished and normal device matching behaviour should resume.
Sets the device enable state.
|
If the device is enabled. |
The date the device was created.
The date the device was last modified, which in this instance means having a profile added or removed, or a different profile set as default.
The device model string.
The device serial string.
The device vendor string.
The device supported colorspace string, e.g. RGB
.
The device kind, e.g. scanner
,
display
, printer
or
camera
The device id string.
The profile paths associated with this device. Profiles are returned even if the device is disabled or is profiling, and clients should not assume that the first profile in this array should be applied.
The mode of the device, e.g. virtual
,
physical
or unknown
.
Virtual devices are not tied to a specific item of hardware and can represent abstract devices such as "Boots Photo Lab".
Physical devices correspond to a connected device that cannot be removed by client software.
If a virtual 'disk' device gets added by a client then it is promoted to a 'physical' device. This can happen if a printer is saved and then restored at next boot before the CUPS daemon is running.
The qualifier format for the device, e.g.
ColorModel.OutputMode.OutputResolution
.
The scope of the device, e.g. normal
,
temp
or disk
.
The user ID of the account that created the device.
If the device is enabled. Devices are enabled by default
until Device.SetEnabled(False)
is called.
If the enabled state is changed then this is reflected for
all users and persistent across reboots.
The seat that the device belongs to, or an empty string for none or unknown.
If the device is embedded into the hardware itself, for example the internal webcam or laptop screen.
The metadata for the device, which may include optional
keys like XRANDR_name
.
The bus names of all the clients that have inhibited the
device for profiling. e.g. [ ":1.99", ":1.109" ]