Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Remove colord
Luna Lovecraft218e2137ec05
diff --git a/libs/color/CMakeLists.txt b/libs/color/CMakeLists.txtindex ae209e0369..42a5714a17 100644--- a/libs/color/CMakeLists.txt+++ b/libs/color/CMakeLists.txt@@ -1,10 +1,4 @@-if (UNIX AND NOT APPLE AND HAVE_DBUS)- add_subdirectory(colord)- set(kritacolor_LIB_SRCS kis_color_manager.h linux/kis_color_manager.cpp)- set(kritacolor_EXTRA_LIBRARIES kritacolord)- set_target_properties(kritacolord PROPERTIES- VERSION ${GENERIC_KRITA_LIB_VERSION} SOVERSION ${GENERIC_KRITA_LIB_SOVERSION} )-elseif (MSVC)+if (MSVC)set(kritacolor_LIB_SRCS kis_color_manager.h dummy/kis_color_manager.cpp ${CMAKE_CURRENT_BINARY_DIR}/kritacolor_export.h)else ()set(kritacolor_LIB_SRCS kis_color_manager.h dummy/kis_color_manager.cpp)diff --git a/libs/color/colord/CMakeLists.txt b/libs/color/colord/CMakeLists.txtdeleted file mode 100644index f2ed60d638..0000000000--- a/libs/color/colord/CMakeLists.txt+++ /dev/null@@ -1,43 +0,0 @@-set(kritacolord_SRCS- KisColord.cpp-)--set(COLORD_INTERFACE_XML- org.freedesktop.ColorManager.xml-)-set(COLORD_DEVICE_INTERFACE_XML- org.freedesktop.ColorManager.Device.xml-)-set(COLORD_PROFILE_INTERFACE_XML- org.freedesktop.ColorManager.Profile.xml-)-set(COLORD_SENSOR_INTERFACE_XML- org.freedesktop.ColorManager.Sensor.xml-)--set_source_files_properties(${COLORD_INTERFACE_XML} PROPERTIES INCLUDE "dbus-types.h")-set_source_files_properties(${COLORD_INTERFACE_XML} PROPERTIES NO_NAMESPACE true)-set_source_files_properties(${COLORD_INTERFACE_XML} PROPERTIES CLASSNAME CdInterface)-qt5_add_dbus_interface(kritacolord_SRCS ${COLORD_INTERFACE_XML} CdInterface)--set_source_files_properties(${COLORD_DEVICE_INTERFACE_XML} PROPERTIES INCLUDE "dbus-types.h")-set_source_files_properties(${COLORD_DEVICE_INTERFACE_XML} PROPERTIES NO_NAMESPACE true)-set_source_files_properties(${COLORD_DEVICE_INTERFACE_XML} PROPERTIES CLASSNAME CdDeviceInterface)-qt5_add_dbus_interface(kritacolord_SRCS ${COLORD_DEVICE_INTERFACE_XML} CdDeviceInterface)--set_source_files_properties(${COLORD_PROFILE_INTERFACE_XML} PROPERTIES INCLUDE "dbus-types.h")-set_source_files_properties(${COLORD_PROFILE_INTERFACE_XML} PROPERTIES NO_NAMESPACE true)-set_source_files_properties(${COLORD_PROFILE_INTERFACE_XML} PROPERTIES CLASSNAME CdProfileInterface)-qt5_add_dbus_interface(kritacolord_SRCS ${COLORD_PROFILE_INTERFACE_XML} CdProfileInterface)--set_source_files_properties(${COLORD_SENSOR_INTERFACE_XML} PROPERTIES INCLUDE "dbus-types.h")-set_source_files_properties(${COLORD_SENSOR_INTERFACE_XML} PROPERTIES NO_NAMESPACE true)-set_source_files_properties(${COLORD_SENSOR_INTERFACE_XML} PROPERTIES CLASSNAME CdSensorInterface)-qt5_add_dbus_interface(kritacolord_SRCS ${COLORD_SENSOR_INTERFACE_XML} CdSensorInterface)---kis_add_library(kritacolord SHARED ${kritacolord_SRCS})-target_link_libraries(kritacolord kritaglobal Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui)-generate_export_header(kritacolord BASE_NAME kritacolord)--install(TARGETS kritacolord DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})diff --git a/libs/color/colord/KisColord.cpp b/libs/color/colord/KisColord.cppdeleted file mode 100644index b99a1f1561..0000000000--- a/libs/color/colord/KisColord.cpp+++ /dev/null@@ -1,274 +0,0 @@-/*- * SPDX-FileCopyrightText: 2012 Daniel Nicoletti <[email protected]>- * SPDX-FileCopyrightText: 2015 Boudewijn Rempt <[email protected]>- *- * SPDX-License-Identifier: GPL-2.0-or-later- */--#include "KisColord.h"--#include <klocalizedstring.h>-#include <kis_debug.h>---#include "CdInterface.h"-#include "CdProfileInterface.h"-#include "CdDeviceInterface.h"---struct Profile {- QString kind;- QString filename;- QString title;- qulonglong created;- QString colorspace;-};--struct Device {-- ~Device() {- qDeleteAll(profiles);- profiles.clear();- }-- QString id;- QString kind;- QString model;- QString vendor;- QString colorspace;-- QList<Profile*> profiles;--};--KisColord::KisColord(QObject *parent)- : QObject(parent)-{- //dbgKrita << "Creating KisColorD";-- m_cdInterface = new CdInterface(QLatin1String("org.freedesktop.ColorManager"),- QLatin1String("/org/freedesktop/ColorManager"),- QDBusConnection::systemBus(),- this);-- // listen to colord for device events- connect(m_cdInterface, SIGNAL(DeviceAdded(QDBusObjectPath)),- this, SLOT(deviceAdded(QDBusObjectPath)));- connect(m_cdInterface, SIGNAL(DeviceRemoved(QDBusObjectPath)),- this, SLOT(deviceRemoved(QDBusObjectPath)));- connect(m_cdInterface, SIGNAL(DeviceChanged(QDBusObjectPath)),- this, SLOT(deviceChanged(QDBusObjectPath)));-- // Ask for devices- QDBusPendingReply<QList<QDBusObjectPath> > async = m_cdInterface->GetDevices();- QDBusPendingCallWatcher *displayWatcher = new QDBusPendingCallWatcher(async, this);- connect(displayWatcher, SIGNAL(finished(QDBusPendingCallWatcher*)),- this, SLOT(gotDevices(QDBusPendingCallWatcher*)));--- // Make sure we know is colord is running- QDBusServiceWatcher *watcher = new QDBusServiceWatcher("org.freedesktop.ColorManager",- QDBusConnection::systemBus(),- QDBusServiceWatcher::WatchForOwnerChange,- this);-- connect(watcher, SIGNAL(serviceOwnerChanged(QString,QString,QString)),- this, SLOT(serviceOwnerChanged(QString,QString,QString)));-}--KisColord::~KisColord()-{- qDeleteAll(m_devices);- m_devices.clear();-}--QStringList KisColord::devices(const QString &type) const-{- QStringList res;- Q_FOREACH (Device *dev, m_devices.values()) {- if (type == dev->kind) {- res << dev->id;- }- }- return res;-}--const QString KisColord::deviceName(const QString &id) const-{- QString res;- Q_FOREACH (Device *dev, m_devices.values()) {- if (dev->id == id) {- res = dev->model + ", " + dev->vendor;- }- }- return res;-}--QByteArray KisColord::deviceProfile(const QString &id, int p)-{- QByteArray ba;- Device *dev = 0;- Profile *profile = 0;- Q_FOREACH (Device *d, m_devices.values()) {- if (d->id == id) {- dev = d;- break;- }- }-- if (dev) {- if (dev->profiles.size() > 0) {- if (dev->profiles.size() < p) {- profile = dev->profiles[p];- }- else {- profile = dev->profiles[0];- }- }-- if (profile) {- //dbgKrita << "profile filename" << profile->filename;- QFile f(profile->filename);- if (f.open(QFile::ReadOnly)) {- ba = f.readAll();- }- else {- dbgKrita << "Could not load profile" << profile->title << profile->filename;- }- }- }-- return ba;-}----void KisColord::serviceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner)-{- Q_UNUSED(serviceName);- if (newOwner.isEmpty() || oldOwner != newOwner) {- // colord has quit or restarted- qDeleteAll(m_devices);- m_devices.clear();- }- Q_EMIT changed();-}--void KisColord::gotDevices(QDBusPendingCallWatcher *call)-{- //dbgKrita << "Got devices!!!";-- QDBusPendingReply<QList<QDBusObjectPath> > reply = *call;- if (reply.isError()) {- dbgKrita << "Unexpected message" << reply.error().message();- } else {- QList<QDBusObjectPath> devices = reply.argumentAt<0>();- Q_FOREACH (const QDBusObjectPath &device, devices) {- deviceAdded(device, false);- }- Q_EMIT changed();- }- //dbgKrita << "gotDevices" << m_devices.count();- call->deleteLater();-}--void KisColord::deviceChanged(const QDBusObjectPath &objectPath)-{- CdDeviceInterface device(QLatin1String("org.freedesktop.ColorManager"),- objectPath.path(),- QDBusConnection::systemBus());- if (!device.isValid()) {- return;- }-- if (!m_devices.contains(objectPath)) {- //dbgKrita << "deviceChanged for an unknown device" << objectPath.path();- deviceAdded(objectPath, false);- return;- }-- QList<QDBusObjectPath> profiles = device.profiles();-- Device *dev = m_devices[objectPath];- qDeleteAll(dev->profiles);- dev->profiles.clear();-- addProfilesToDevice(dev, profiles);-- //dbgKrita << "deviceChanged" << dev->id << "with" << profiles.size() << "profiles";-- Q_EMIT changed(dev->id);-}--void KisColord::deviceAdded(const QDBusObjectPath &objectPath, bool emitChanged)-{- if (m_devices.contains(objectPath)) {- //dbgKrita << "Device is already on the list" << objectPath.path();- return;- }-- CdDeviceInterface device(QLatin1String("org.freedesktop.ColorManager"),- objectPath.path(),- QDBusConnection::systemBus());- if (!device.isValid()) {- dbgKrita << "Got an invalid device" << objectPath.path();- return;- }-- Device *dev = new Device;-- dev->id = device.deviceId();- dev->kind = device.kind();- dev->model = device.model();- dev->vendor = device.vendor();- dev->colorspace = device.colorspace();-- m_devices[objectPath] = dev;-- QList<QDBusObjectPath> profiles = device.profiles();- addProfilesToDevice(dev, profiles);--// dbgKrita << "deviceAdded" << dev->id-// << dev->kind-// << dev->model-// << dev->vendor-// << "with" << profiles.size() << "profiles";-- if (emitChanged) {- Q_EMIT changed();- }-}--void KisColord::deviceRemoved(const QDBusObjectPath &objectPath)-{- if (m_devices.contains(objectPath)) {- delete m_devices.take(objectPath);- }- Q_EMIT changed();-}--void KisColord::addProfilesToDevice(Device *dev, QList<QDBusObjectPath> profiles) const-{-- Q_FOREACH (const QDBusObjectPath &profileObjectPath, profiles) {-- CdProfileInterface profile(QLatin1String("org.freedesktop.ColorManager"),- profileObjectPath.path(),- QDBusConnection::systemBus());- if (!profile.isValid()) {- return;- }--- Profile *p = new Profile;-- p->kind = profile.kind();- p->filename = profile.filename();- p->title = profile.title();- p->created = profile.created();- p->colorspace = profile.colorspace();-- dev->profiles << p;- }-}-diff --git a/libs/color/colord/KisColord.h b/libs/color/colord/KisColord.hdeleted file mode 100644index 49724d411e..0000000000--- a/libs/color/colord/KisColord.h+++ /dev/null@@ -1,68 +0,0 @@-/*- * SPDX-FileCopyrightText: 2012 Daniel Nicoletti <[email protected]>- * SPDX-FileCopyrightText: 2015 Boudewijn Rempt <[email protected]>- *- * SPDX-License-Identifier: GPL-2.0-or-later- */--#ifndef KIS_COLORD_H-#define KIS_COLORD_H--#include "dbus-types.h"--#include <QDBusObjectPath>-#include <QDBusServiceWatcher>-#include <QDBusPendingCallWatcher>--#include <QMap>-#include <QString>--#include <QMetaType>---#define CD_PROFILE_METADATA_DATA_SOURCE_EDID "edid"-#define CD_PROFILE_METADATA_DATA_SOURCE_CALIB "calib"-#define CD_PROFILE_METADATA_DATA_SOURCE_STANDARD "standard"-#define CD_PROFILE_METADATA_DATA_SOURCE_TEST "test"--class CdInterface;-struct Device;---#include "kritacolord_export.h"--class KRITACOLORD_EXPORT KisColord : public QObject-{- Q_OBJECT-public:- KisColord(QObject *parent = 0);- ~KisColord() override;-- QStringList devices(const QString &type) const;- const QString deviceName(const QString &id) const;- QByteArray deviceProfile(const QString &id, int profile);--Q_SIGNALS:- void changed();- void changed(const QString& device);---private Q_SLOTS:-- void serviceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner);-- void gotDevices(QDBusPendingCallWatcher *call);- void deviceChanged(const QDBusObjectPath &objectPath);- void deviceAdded(const QDBusObjectPath &objectPath, bool emitChanged = true);- void deviceRemoved(const QDBusObjectPath &objectPath);--private:-- void addProfilesToDevice(Device *dev, QList<QDBusObjectPath> profiles) const;-- QMap<QDBusObjectPath, Device*> m_devices;-- CdInterface *m_cdInterface;-};--#endif // COLORD_KCM_Hdiff --git a/libs/color/colord/dbus-types.h b/libs/color/colord/dbus-types.hdeleted file mode 100644index 9fee80ecb7..0000000000--- a/libs/color/colord/dbus-types.h+++ /dev/null@@ -1,62 +0,0 @@-/***************************************************************************- * SPDX-FileCopyrightText: 2013 Daniel Nicoletti <[email protected]> *- * *- * SPDX-License-Identifier: GPL-2.0-or-later- * *- * This program is distributed in the hope that it will be useful, *- * but WITHOUT ANY WARRANTY; without even the implied warranty of *- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *- * GNU General Public License for more details. *- * *- * You should have received a copy of the GNU General Public License *- * along with this program; see the file COPYING. If not, write to *- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *- * Boston, MA 02110-1301, USA. *- ***************************************************************************/--#ifndef DBUS_TYPES_H-#define DBUS_TYPES_H--#include <QMap>-#include <QMetaType>--typedef QMap<QString, QString> CdStringMap;-Q_DECLARE_METATYPE(CdStringMap)--struct Gamma {- double red;- double green;- double blue;-};-typedef QList<Gamma> CdGamaList;-Q_DECLARE_METATYPE(CdGamaList)--/* defined in org.freedesktop.ColorManager.Device.xml */-#define CD_DEVICE_PROPERTY_MODEL "Model"-#define CD_DEVICE_PROPERTY_KIND "Kind"-#define CD_DEVICE_PROPERTY_VENDOR "Vendor"-#define CD_DEVICE_PROPERTY_SERIAL "Serial"-#define CD_DEVICE_PROPERTY_COLORSPACE "Colorspace"-#define CD_DEVICE_PROPERTY_FORMAT "Format"-#define CD_DEVICE_PROPERTY_MODE "Mode"-#define CD_DEVICE_PROPERTY_PROFILES "Profiles"-#define CD_DEVICE_PROPERTY_CREATED "Created"-#define CD_DEVICE_PROPERTY_MODIFIED "Modified"-#define CD_DEVICE_PROPERTY_METADATA "Metadata"-#define CD_DEVICE_PROPERTY_ID "DeviceId"-#define CD_DEVICE_PROPERTY_SCOPE "Scope"-#define CD_DEVICE_PROPERTY_OWNER "Owner"-#define CD_DEVICE_PROPERTY_SEAT "Seat"-#define CD_DEVICE_PROPERTY_PROFILING_INHIBITORS "ProfilingInhibitors"-#define CD_DEVICE_PROPERTY_ENABLED "Enabled"-#define CD_DEVICE_PROPERTY_EMBEDDED "Embedded"--/* defined in metadata-spec.txt */-#define CD_DEVICE_METADATA_XRANDR_NAME "XRANDR_name"-#define CD_DEVICE_METADATA_OUTPUT_EDID_MD5 "OutputEdidMd5"-#define CD_DEVICE_METADATA_OUTPUT_PRIORITY "OutputPriority"-#define CD_DEVICE_METADATA_OUTPUT_PRIORITY_PRIMARY "primary"-#define CD_DEVICE_METADATA_OUTPUT_PRIORITY_SECONDARY "secondary"-#define CD_DEVICE_METADATA_OWNER_CMDLINE "OwnerCmdline"--#endifdiff --git a/libs/color/colord/org.freedesktop.ColorHelper.xml b/libs/color/colord/org.freedesktop.ColorHelper.xmldeleted file mode 100644index 32b9de814a..0000000000--- a/libs/color/colord/org.freedesktop.ColorHelper.xml+++ /dev/null@@ -1,258 +0,0 @@-<!DOCTYPE node PUBLIC-"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"-"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">-<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">- <interface name='org.freedesktop.ColorHelper'>- <doc:doc>- <doc:description>- <doc:para>- The interface used for general calibration queries not related- to specific device types, for example displays.- </doc:para>- </doc:description>- </doc:doc>-- <!--***********************************************************-->- <property name='DaemonVersion' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The daemon version.- </doc:para>- </doc:description>- </doc:doc>- </property>- </interface>-- <interface name='org.freedesktop.ColorHelper.Display'>- <doc:doc>- <doc:description>- <doc:para>- The interface used for calibrating displays.- </doc:para>- </doc:description>- </doc:doc>-- <!--***********************************************************-->- <property name='Progress' type='u' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The percentage complete of the calibration.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <method name='Start'>- <doc:doc>- <doc:description>- <doc:para>- Starts the calibration.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='device_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The device ID, e.g. <doc:tt>xrandr-LVDS1</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='profile_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The profile ID, e.g. <doc:tt>sensor-colorhug</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='a{sv}' name='options' direction='in'>- <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/>- <doc:doc>- <doc:summary>- <doc:para>- Optional parameters that will influence the calibration.- Known keys are:- <doc:tt>Quality</doc:tt> : (u) The calibration quality, where 0 is low, 1 is medium and- 2 is high.- <doc:tt>Whitepoint</doc:tt> : (u) The target whitepoint in Kelvin, or 0 or native.- <doc:tt>Title</doc:tt> : (s) The profile title, e.g. <doc:tt>Lenovo T61</doc:tt>.- <doc:tt>DeviceKind</doc:tt> : (u) The CdSensorCap for the display.- <doc:tt>Brightness</doc:tt> : (u) The display brightness.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='Cancel'>- <doc:doc>- <doc:description>- <doc:para>- Cancel the calibration that is in progress.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!--***********************************************************-->- <method name='Resume'>- <doc:doc>- <doc:description>- <doc:para>- Resume the calibration that is in progress.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!-- ************************************************************ -->- <signal name='Finished'>- <doc:doc>- <doc:description>- <doc:para>- The calibration process has been completed.- </doc:para>- </doc:description>- </doc:doc>- <arg type='u' name='error_code' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An error code, or 0 for no error. The error code is- specified in CdMainError.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='a{sv}' name='details' direction='out'>- <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>- <doc:doc>- <doc:summary>- <doc:para>- Extra data from the calibration that may be useful to- client software.- Known keys are:- <doc:tt>ProfileId</doc:tt> : (s) The ID of the profile.- <doc:tt>ProfilePath</doc:tt> : (s) The object path of the profile.- <doc:tt>ErrorDetails</doc:tt>: (s) Any untranslated error detail string.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!-- ************************************************************ -->- <signal name='UpdateSample'>- <doc:doc>- <doc:description>- <doc:para>- Emitted when the controller should update the RGB patch on- the screen. The controller has 100ms to update the display.- </doc:para>- </doc:description>- </doc:doc>- <arg type='d' name='red' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The red value from 0.0 to 1.0- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='d' name='green' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The red value from 0.0 to 1.0- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='d' name='blue' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The red value from 0.0 to 1.0- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!-- ************************************************************ -->- <signal name='UpdateGamma'>- <doc:doc>- <doc:description>- <doc:para>- Emitted when the controller should update the gamma ramps- for the screen.- The controller has 50ms to update the display.- </doc:para>- </doc:description>- </doc:doc>- <arg type='a(ddd)' name='gamma' direction='out'>- <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="CdGamaList"/>- <doc:doc>- <doc:summary>- <doc:para>- The red, green and blue ramps, which should be- interpolated to match the display gamma size.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!-- ************************************************************ -->- <signal name='InteractionRequired'>- <doc:doc>- <doc:description>- <doc:para>- Emitted when the user needs to do something.- </doc:para>- </doc:description>- </doc:doc>- <arg type='u' name='code' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The interaction code, where:- 0 = attach to screen- 1 = move to calibration mode.- 2 = move to surface mode.- 3 = shut the laptop lid.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='message' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- Any debugging message for the interaction.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='image' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An image to show what interaction is required, or '' for- no image available.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- </interface>-</node>diff --git a/libs/color/colord/org.freedesktop.ColorManager.Device.xml b/libs/color/colord/org.freedesktop.ColorManager.Device.xmldeleted file mode 100644index 8b55ea82cc..0000000000--- a/libs/color/colord/org.freedesktop.ColorManager.Device.xml+++ /dev/null@@ -1,510 +0,0 @@-<!DOCTYPE node PUBLIC-"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"-"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">-<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">- <interface name='org.freedesktop.ColorManager.Device'>- <doc:doc>- <doc:description>- <doc:para>- The interface used for querying color parameters for a specific device.- </doc:para>- </doc:description>- </doc:doc>-- <!--***********************************************************-->- <property name='Created' type='t' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The date the device was created.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Modified' type='t' access='read'>- <doc:doc>- <doc:description>- <doc:para>- 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.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Model' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The device model string.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Serial' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The device serial string.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Vendor' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The device vendor string.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Colorspace' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The device supported colorspace string, e.g. <doc:tt>RGB</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Kind' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The device kind, e.g. <doc:tt>scanner</doc:tt>,- <doc:tt>display</doc:tt>, <doc:tt>printer</doc:tt> or- <doc:tt>camera</doc:tt>- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='DeviceId' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The device id string.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Profiles' type='ao' access='read'>- <doc:doc>- <doc:description>- <doc:para>- 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.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Mode' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The mode of the device, e.g. <doc:tt>virtual</doc:tt>,- <doc:tt>physical</doc:tt> or <doc:tt>unknown</doc:tt>.- </doc:para>- <doc:para>- Virtual devices are not tied to a specific item of hardware- and can represent abstract devices such as "Boots Photo Lab".- </doc:para>- <doc:para>- Physical devices correspond to a connected device that- cannot be removed by client software.- </doc:para>- <doc:para>- 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.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Format' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The qualifier format for the device, e.g.- <doc:tt>ColorModel.OutputMode.OutputResolution</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Scope' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The scope of the device, e.g. <doc:tt>normal</doc:tt>,- <doc:tt>temp</doc:tt> or <doc:tt>disk</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Owner' type='u' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The user ID of the account that created the device.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Enabled' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the device is enabled. Devices are enabled by default- until <doc:tt>Device.SetEnabled(False)</doc:tt> is called.- If the enabled state is changed then this is reflected for- all users and persistent across reboots.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Seat' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The seat that the device belongs to, or an empty string for- none or unknown.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Embedded' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the device is embedded into the hardware itself, for- example the internal webcam or laptop screen.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Metadata' type='a{ss}' access='read'>- <annotation name="org.qtproject.QtDBus.QtTypeName" value="CdStringMap"/>- <doc:doc>- <doc:description>- <doc:para>- The metadata for the device, which may include optional- keys like <doc:tt>XRANDR_name</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='ProfilingInhibitors' type='as' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The bus names of all the clients that have inhibited the- device for profiling. e.g. <doc:tt>[ ":1.99", ":1.109" ]</doc:tt>- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <method name='SetProperty'>- <doc:doc>- <doc:description>- <doc:para>- Sets a property on the object.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='property_name' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The property name, e.g. <doc:tt>Model</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='property_value' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The property value, e.g. <doc:tt>RGB.Plain.</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!-- ************************************************************ -->- <signal name='Changed'>- <doc:doc>- <doc:description>- <doc:para>- Some value on the interface has changed.- </doc:para>- </doc:description>- </doc:doc>- </signal>-- <!--***********************************************************-->- <method name='AddProfile'>- <doc:doc>- <doc:description>- <doc:para>- Adds a profile to the device. The profile must have been- previously created.- </doc:para>- <doc:para>- This method also stores the device to profile mapping in a- persistent database, so that if the device and profile- happen to both exist in the future, the profiles are- auto-added to the device.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='relation' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The strength of the relationship from profile to device.- This can be <doc:tt>soft</doc:tt> to indicate that the- mapping is not important, or that the profile is assumed- from a device and not in response to user action.- <doc:para>- </doc:para>- The default option is <doc:tt>hard</doc:tt>, and this- means that the user has explicitly mapped a profile to- a device, and this should take precedence over any- <doc:tt>soft</doc:tt> profiles.- </doc:para>- <doc:para>- If the user makes a <doc:tt>soft</doc:tt> profile default,- then it is explicitly promoted to a <doc:tt>hard</doc:tt>- relationship.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path to add.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='RemoveProfile'>- <doc:doc>- <doc:description>- <doc:para>- Removes a profile for a device.- </doc:para>- <doc:para>- This method also removes the device to profile mapping from- a persistent database, so that if the device and profile- happen to both exist in the future, the profiles are- no longer auto-added to the device.- </doc:para>- <doc:para>- 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 suppressed.- This allows the user to remove old or obsolete profiles- from any color control panel without having to delete them.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path that has already been added to the device.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='MakeProfileDefault'>- <doc:doc>- <doc:description>- <doc:para>- Sets the default profile for a device.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='profile_path' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path that has already been added to the device.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetProfileForQualifiers'>- <doc:doc>- <doc:description>- <doc:para>- Gets a single profile object path for a qualifier.- The search term can contain '*' and '?' wildcards.- </doc:para>- </doc:description>- </doc:doc>- <arg type='as' name='qualifiers' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- An array of qualifiers, e.g. <doc:tt>['RGB.*.300dpi', 'RGB.*.*', '*.*.*']</doc:tt>.- </doc:para>- <doc:para>- If the qualifier <doc:tt>*</doc:tt> is specified then- the default profile is returned.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path for the search terms.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetProfileRelation'>- <doc:doc>- <doc:description>- <doc:para>- Gets a profile relation for a given profile that has been- added to this device.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A profile object path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='relation' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The profile to device relation, e.g. <doc:tt>hard</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='ProfilingInhibit'>- <doc:doc>- <doc:description>- <doc:para>- Adds an inhibit on all profiles for this device. This means- that any calls to <doc:tt>GetProfileForQualifier</doc:tt>- will always match no profiles.- </doc:para>- <doc:para>- 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.- </doc:para>- <doc:para>- If the calling program exits without calling- <doc:tt>ProfilingUninhibit</doc:tt> then the inhibit is- automatically removed.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!--***********************************************************-->- <method name='ProfilingUninhibit'>- <doc:doc>- <doc:description>- <doc:para>- Removes an inhibit on the device.- This method should be used when profiling has finished and- normal device matching behaviour should resume.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!--***********************************************************-->- <method name='SetEnabled'>- <doc:doc>- <doc:description>- <doc:para>- Sets the device enable state.- </doc:para>- </doc:description>- </doc:doc>- <arg type='b' name='enabled' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- If the device is enabled.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- </interface>-</node>diff --git a/libs/color/colord/org.freedesktop.ColorManager.Profile.xml b/libs/color/colord/org.freedesktop.ColorManager.Profile.xmldeleted file mode 100644index b4385c7895..0000000000--- a/libs/color/colord/org.freedesktop.ColorManager.Profile.xml+++ /dev/null@@ -1,241 +0,0 @@-<!DOCTYPE node PUBLIC-"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"-"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">-<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">- <interface name='org.freedesktop.ColorManager.Profile'>- <doc:doc>- <doc:description>- <doc:para>- The interface used for querying color profiles.- </doc:para>- </doc:description>- </doc:doc>-- <!--***********************************************************-->- <property name='ProfileId' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The identification hash of the profile.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Title' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The printable title for the profile.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Metadata' type='a{ss}' access='read'>- <annotation name="org.qtproject.QtDBus.QtTypeName" value="CdStringMap"/>- <doc:doc>- <doc:description>- <doc:para>- The metadata for the profile, which may include optional- keys like <doc:tt>EDID_md5</doc:tt> and- <doc:tt>EDID_manufacturer</doc:tt> that are set by several- CMS frameworks.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Qualifier' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The qualifier for the profile.- A qualifier is used as a way to select a profile for a device.- This might be something free text like- <doc:tt>High quality studio</doc:tt>doc:tt> or something more- programmable like <doc:tt>RGB.Plain.300dpi</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Format' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The qualifier format for the profile.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Kind' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The profile kind, e.g. <doc:tt>colorspace-conversion</doc:tt>,- <doc:tt>abstract</doc:tt> or <doc:tt>display-device</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Colorspace' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The profile colorspace, e.g. <doc:tt>rgb</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='HasVcgt' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the profile has a VCGT entry.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='IsSystemWide' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the profile is installed system wide and available- for all users.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Filename' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The profile filename, if one exists.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Created' type='x' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The date and time the profile was created in UNIX time.- </doc:para>- <doc:para>- NOTE: this is NOT the time the meta-profile was created,- or added to colord, nor the disk timestamp for the profile- filename.- This is the encoded date and time inside the ICC filename.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Scope' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The scope of the device, e.g. <doc:tt>normal</doc:tt>,- <doc:tt>temp</doc:tt> or <doc:tt>disk</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Owner' type='u' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The user ID of the account that created the profile.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Warnings' type='as' access='read'>- <doc:doc>- <doc:description>- <doc:para>- Any warnings for the profile, e.g.- '<doc:tt>description-missing</doc:tt>' or- '<doc:tt>vcgt-non-monotonic</doc:tt>'.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <method name='SetProperty'>- <doc:doc>- <doc:description>- <doc:para>- Sets a property on the object.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='property_name' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The property name, e.g. <doc:tt>Filename</doc:tt>,- or <doc:tt>Qualifier</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='property_value' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The property value, e.g. <doc:tt>RGB.Plain.</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='InstallSystemWide'>- <doc:doc>- <doc:description>- <doc:para>- Copies the profile system-wide so it can be used by all- users on the system or when no users are logged-in.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!-- ************************************************************ -->- <signal name='Changed'>- <doc:doc>- <doc:description>- <doc:para>- Some value on the interface has changed.- </doc:para>- </doc:description>- </doc:doc>- </signal>-- </interface>-</node>diff --git a/libs/color/colord/org.freedesktop.ColorManager.Sensor.xml b/libs/color/colord/org.freedesktop.ColorManager.Sensor.xmldeleted file mode 100644index 8167fe36f6..0000000000--- a/libs/color/colord/org.freedesktop.ColorManager.Sensor.xml+++ /dev/null@@ -1,292 +0,0 @@-<!DOCTYPE node PUBLIC-"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"-"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">-<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">- <interface name='org.freedesktop.ColorManager.Sensor'>- <doc:doc>- <doc:description>- <doc:para>- The interface used for querying color sensors.- </doc:para>- </doc:description>- </doc:doc>-- <!--***********************************************************-->- <property name='SensorId' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The sensor id string.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Kind' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The kind of the sensor, e.g. <doc:tt>colormunki</doc:tt>- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='State' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The state of the sensor, e.g. <doc:tt>starting</doc:tt>,- <doc:tt>idle</doc:tt> or <doc:tt>measuring</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Mode' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The operating mode of the sensor, e.g. <doc:tt>ambient</doc:tt>,- <doc:tt>printer</doc:tt> or <doc:tt>unknown</doc:tt>.- </doc:para>- <doc:para>- On some devices, a sensor has to be set to a specific- position before a reading can be taken.- This property should be set to the current device mode.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Serial' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The sensor serial number, e.g. <doc:tt>012345678a</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Model' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The sensor model, e.g. <doc:tt>ColorMunki</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Vendor' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The sensor vendor, e.g. <doc:tt>XRite</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Native' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the sensor is supported with a native driver, which does- not require additional tools such as argyllcms.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Embedded' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the sensor is embedded into the laptop hardware, for- example the W700 device from Lenovo.- </doc:para>- <doc:para>- If this property is set then the calibration process should- show the color patch fullscreen and should Q_EMIT an audible- alert when completed.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Locked' type='b' access='read'>- <doc:doc>- <doc:description>- <doc:para>- If the sensor is locked for use by colord.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Capabilities' type='as' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The capabilities of the sensor, e.g <doc:tt>['display',- 'printer', 'projector', 'spot']</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Options' type='a{sv}' access='read'>- <annotation name="org.qtproject.QtDBus.QtTypeName" value="QVariantMap"/>- <doc:doc>- <doc:description>- <doc:para>- The options currently set on the sensor.- </doc:para>- <doc:para>- This is a dictionary of property keys and values, e.g.- <doc:tt>remote-profile-hash = deadbeef</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='Metadata' type='a{ss}' access='read'>- <annotation name="org.qtproject.QtDBus.QtTypeName" value="CdStringMap"/>- <doc:doc>- <doc:description>- <doc:para>- The metadata for the sensor, which may include optional- keys like <doc:tt>AttachImage</doc:tt>.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <method name='Lock'>- <doc:doc>- <doc:description>- <doc:para>- Locks the sensor for use by an application.- </doc:para>- <doc:para>- If the current holder of the lock quits without calling- <doc:tt>Unlock</doc:tt> then it is automatically removed.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!--***********************************************************-->- <method name='Unlock'>- <doc:doc>- <doc:description>- <doc:para>- Unlocks the sensor for use by other applications.- </doc:para>- </doc:description>- </doc:doc>- </method>-- <!--***********************************************************-->- <method name='GetSample'>- <doc:doc>- <doc:description>- <doc:para>- Gets a color sample using the sensor.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='capability' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- The capability we are using, e.g. <doc:tt>crt</doc:tt>,- <doc:tt>ambient</doc:tt>, <doc:tt>lcd</doc:tt>,- <doc:tt>led</doc:tt> or <doc:tt>projector</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='d' name='sample_x' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The X value, or <doc:tt>-1.0</doc:tt> for an error.- </doc:para>- <doc:para>- For the capability of <doc:tt>ambient</doc:tt> this is- the brightness in Lux.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='d' name='sample_y' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The Y value, or <doc:tt>-1.0</doc:tt> for an error.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='d' name='sample_z' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The Z value, or <doc:tt>-1.0</doc:tt> for an error.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='SetOptions'>- <doc:doc>- <doc:description>- <doc:para>- Sets one or multiple options on the sensor.- </doc:para>- </doc:description>- </doc:doc>- <annotation name='org.qtproject.QtDBus.QtTypeName.In0' value='QVariantMap'/>- <arg name='values' type='a{sv}' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A dictionary of property keys and values, e.g.- <doc:tt>remote-profile-hash = deadbeef</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!-- ************************************************************ -->- <signal name='ButtonPressed'>- <doc:doc>- <doc:description>- <doc:para>- A button on the sensor has been pressed.- </doc:para>- </doc:description>- </doc:doc>- </signal>-- </interface>-</node>diff --git a/libs/color/colord/org.freedesktop.ColorManager.xml b/libs/color/colord/org.freedesktop.ColorManager.xmldeleted file mode 100644index 57867a992b..0000000000--- a/libs/color/colord/org.freedesktop.ColorManager.xml+++ /dev/null@@ -1,866 +0,0 @@-<!DOCTYPE node PUBLIC-"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"-"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">-<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">- <interface name='org.freedesktop.ColorManager'>- <doc:doc>- <doc:description>- <doc:para>- The interface used for querying color parameters for the system.- </doc:para>- </doc:description>- </doc:doc>-- <!--***********************************************************-->- <property name='DaemonVersion' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The daemon version.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='SystemVendor' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The system vendor.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <property name='SystemModel' type='s' access='read'>- <doc:doc>- <doc:description>- <doc:para>- The system model.- </doc:para>- </doc:description>- </doc:doc>- </property>-- <!--***********************************************************-->- <method name='GetDevices'>- <doc:doc>- <doc:description>- <doc:para>- Gets a list of all the devices which have assigned color profiles.- </doc:para>- </doc:description>- </doc:doc>- <arg type='ao' name='devices' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An array of device paths, e.g. <doc:tt>['/org/freedesktop/ColorManager/device/xrandr_ibm_france_ltn154p2_l05']</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetDevicesByKind'>- <doc:doc>- <doc:description>- <doc:para>- Gets a list of all the devices which have assigned color profiles.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='kind' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A device kind, e.g. <doc:tt>scanner</doc:tt>, <doc:tt>display</doc:tt>,- <doc:tt>printer</doc:tt> or <doc:tt>camera</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='ao' name='devices' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An array of device paths, e.g. <doc:tt>['/org/freedesktop/ColorManager/device/xrandr_ibm_france_ltn154p2_l05']</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='FindDeviceById'>- <doc:doc>- <doc:description>- <doc:para>- Gets a device path for the device ID.- This method is required as device ID's may have to be mangled- to conform with the DBus path specification.- For instance, a device ID of "cups$34:dev' would have a object- path of "/org/freedesktop/ColorManager/cups_34_dev".- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='device_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A device ID.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='FindSensorById'>- <doc:doc>- <doc:description>- <doc:para>- Gets a sensor path for the sensor ID.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='sensor_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A sensor ID.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A sensor path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='FindDeviceByProperty'>- <doc:doc>- <doc:description>- <doc:para>- Gets a device path for the device with the specified property.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='key' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A property key, e.g. <doc:tt>XRANDR_name</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='value' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A property value, e.g. <doc:tt>lvds</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='FindProfileById'>- <doc:doc>- <doc:description>- <doc:para>- Gets a profile path for the profile ID.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='profile_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A profile ID.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='FindProfileByProperty'>- <doc:doc>- <doc:description>- <doc:para>- Gets a profile path for the profile with the specified property.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='key' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A property key, e.g. <doc:tt>FILE_checksum</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='value' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A property value, e.g. <doc:tt>5b3855e8630c9d8a48177cc70680da93</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='FindProfileByFilename'>- <doc:doc>- <doc:description>- <doc:para>- Gets a profile path for the profile filename, either a fully-qualified- filename with path or just the basename of the profile.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='filename' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A profile filename.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetStandardSpace'>- <doc:doc>- <doc:description>- <doc:para>- Gets a profile path for a defined profile space.- The defined space is set from the profile metadata,- specifically in the <doc:tt>STANDARD_space</doc:tt> entry.- </doc:para>- <doc:para>- NOTE: only system wide profiles are able to define- themselves as standard spaces.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='standard_space' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A profile space, e.g. <doc:tt>srgb</doc:tt> or- <doc:tt>adobe-srgb</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetProfiles'>- <doc:doc>- <doc:description>- <doc:para>- Gets a list of all the profiles recognised by the system.- </doc:para>- </doc:description>- </doc:doc>- <arg type='ao' name='devices' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An array of profile paths, e.g. <doc:tt>['/org/freedesktop/ColorManager/profile/adobe_rgb']</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetSensors'>- <doc:doc>- <doc:description>- <doc:para>- Gets a list of all the sensors recognised by the system.- </doc:para>- </doc:description>- </doc:doc>- <arg type='ao' name='devices' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An array of sensor paths, e.g. <doc:tt>['/org/freedesktop/ColorManager/sensor/colormunki']</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='GetProfilesByKind'>- <doc:doc>- <doc:description>- <doc:para>- Gets a list of all the profiles of a specified type.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='kind' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A profile kind, e.g. <doc:tt>input-device</doc:tt> or- <doc:tt>abstract</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='ao' name='devices' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- An array of device paths, e.g. <doc:tt>['/org/freedesktop/ColorManager/device/xrandr_ibm_france_ltn154p2_l05']</doc:tt>.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='CreateProfileWithFd'>- <doc:doc>- <doc:description>- <doc:para>- Creates a profile.- </doc:para>- <doc:para>- If the profile has been added to a device in the past, and- that device exists already, then the new profile will be- automatically added to the device.- To prevent this from happening, remove the assignment by- doing <doc:tt>RemoveProfile</doc:tt>doc:tt> on the relevant- device object.- </doc:para>- <doc:para>- An optional file descriptor can be sent out of band for the- ICC profile file.- </doc:para>- <doc:para>- Using a file descriptor in addition to the filename allows- the daemon to parse the ICC profile without re-opening it,- which allows the daemon to read files inside the users- home directory in a SELinux environment.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='profile_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A unique profile ID that is used to map to the profile.- This is normally the MD5 hash of the disk profile.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='scope' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- Options for creating the profile. This allows the session- color management component to have per-user profiles- stored in the home directory that would not be valid if- the user logged off, or no users are logged in.- </doc:para>- </doc:summary>- <doc:list>- <doc:item>- <doc:term>normal</doc:term>- <doc:definition>- Normal profile.- </doc:definition>- </doc:item>- <doc:item>- <doc:term>temp</doc:term>- <doc:definition>- Profile is removed if the user logs out.- </doc:definition>- </doc:item>- <doc:item>- <doc:term>disk</doc:term>- <doc:definition>- Profile that is saved to disk and restored on next startup.- </doc:definition>- </doc:item>- </doc:list>- </doc:doc>- </arg>- <arg type='h' name='handle' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- An index into the array of file descriptors that may have- been sent with the DBus message.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="CdStringMap"/>- <arg type='a{ss}' name='properties' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- Properties to be used when constructing the profile.- </doc:para>- <doc:para>- This optional value allows the profile to be created with- the latency of one bus round-trip, rather than doing- a few <doc:tt>SetProperty</doc:tt> methods individually.- </doc:para>- <doc:para>- Any properties not understood by colord will be added as- dictionary values to the <doc:tt>Metadata</doc:tt>- property.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='CreateProfile'>- <doc:doc>- <doc:description>- <doc:para>- Creates a profile without using a file descriptor.- It is recommended you use CreateProfileWithFd() as the- daemon may not be running as root and have read access- to profiles in the users home directory.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='profile_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A unique profile ID that is used to map to the profile.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='scope' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- Options for creating the profile.- See CreateProfileWithFd() for the allowed values.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="CdStringMap"/>- <arg type='a{ss}' name='properties' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- Properties to be used when constructing the profile.- See CreateProfileWithFd() for the allowed values.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='CreateDevice'>- <doc:doc>- <doc:description>- <doc:para>- Creates a device.- </doc:para>- <doc:para>- If the device has profiles added to it in the past, and- that profiles exists already, then the new device will be- automatically have profiles added to the device.- To prevent this from happening, remove the assignment by- doing <doc:tt>RemoveProfile</doc:tt> on the relevant- device object.- </doc:para>- </doc:description>- </doc:doc>- <arg type='s' name='device_id' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A device ID that is used to map to the device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='s' name='scope' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- Options for creating the device. This allows the session- color management component to have per-session virtual- devices cleaned up automatically or devices that are- re-created on each boot.- </doc:para>- </doc:summary>- <doc:list>- <doc:item>- <doc:term>normal</doc:term>- <doc:definition>- Normal device.- </doc:definition>- </doc:item>- <doc:item>- <doc:term>temp</doc:term>- <doc:definition>- Device that is removed if the user logs out.- </doc:definition>- </doc:item>- <doc:item>- <doc:term>disk</doc:term>- <doc:definition>- Device that is saved to disk, and restored if the- computer is restarted.- </doc:definition>- </doc:item>- </doc:list>- </doc:doc>- </arg>- <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="CdStringMap"/>- <arg type='a{ss}' name='properties' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- Properties to be used when constructing the device.- </doc:para>- <doc:para>- This optional value allows the device to be created with- the latency of one bus round-trip, rather than doing- a few <doc:tt>SetProperty</doc:tt> methods individually.- </doc:para>- <doc:para>- Any properties not understood by colord will be added as- dictionary values to the <doc:tt>Metadata</doc:tt>- property.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- A device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='DeleteDevice'>- <doc:doc>- <doc:description>- <doc:para>- Deletes a device.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <method name='DeleteProfile'>- <doc:doc>- <doc:description>- <doc:para>- Deletes a profile.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='in'>- <doc:doc>- <doc:summary>- <doc:para>- A profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </method>-- <!--***********************************************************-->- <signal name='Changed'>- <doc:doc>- <doc:description>- <doc:para>- Some value on the interface or the number of devices or- profiles has changed.- </doc:para>- </doc:description>- </doc:doc>- </signal>-- <!--***********************************************************-->- <signal name='DeviceAdded'>- <doc:doc>- <doc:description>- <doc:para>- A device has been added.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='DeviceRemoved'>- <doc:doc>- <doc:description>- <doc:para>- A device has been removed.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='DeviceChanged'>- <doc:doc>- <doc:description>- <doc:para>- A device has changed.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The device path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='ProfileAdded'>- <doc:doc>- <doc:description>- <doc:para>- A profile has been added.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='ProfileRemoved'>- <doc:doc>- <doc:description>- <doc:para>- A profile has been removed.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='SensorAdded'>- <doc:doc>- <doc:description>- <doc:para>- A sensor has been added.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The sensor path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='SensorRemoved'>- <doc:doc>- <doc:description>- <doc:para>- A sensor has been removed.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The sensor path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- <!--***********************************************************-->- <signal name='ProfileChanged'>- <doc:doc>- <doc:description>- <doc:para>- A profile has been changed.- </doc:para>- </doc:description>- </doc:doc>- <arg type='o' name='object_path' direction='out'>- <doc:doc>- <doc:summary>- <doc:para>- The profile path.- </doc:para>- </doc:summary>- </doc:doc>- </arg>- </signal>-- </interface>-</node>diff --git a/libs/color/linux/kis_color_manager.cpp b/libs/color/linux/kis_color_manager.cppdeleted file mode 100644index 517f758c8c..0000000000--- a/libs/color/linux/kis_color_manager.cpp+++ /dev/null@@ -1,68 +0,0 @@-/*- * SPDX-FileCopyrightText: 2015 Boudewijn Rempt <[email protected]>- *- * SPDX-License-Identifier: GPL-2.0-or-later- */--#include <QGlobalStatic>--#include "kis_color_manager.h"-#include "colord/KisColord.h"--#include <kis_debug.h>--Q_GLOBAL_STATIC(KisColorManager, s_instance)--class KisColorManager::Private {-public:- Private(QObject *parent)- : colord(new KisColord(parent))- {}-- KisColord *colord;-};--KisColorManager::KisColorManager()- : QObject()- , d(new Private(this))-{- //dbgKrita << "ColorManager started";- connect(d->colord, SIGNAL(changed(QString)), this, SIGNAL(changed(QString)));-}--KisColorManager::~KisColorManager()-{- delete d;-}--QString KisColorManager::deviceName(const QString &id)-{- return d->colord->deviceName(id);-}--QStringList KisColorManager::devices(DeviceType type) const-{-- switch (type) {- case screen:- return d->colord->devices("display");- case printer:- return d->colord->devices("printer");- case camera:- return d->colord->devices("camera");- case scanner:- return d->colord->devices("scanner");- };-- return QStringList();-}--QByteArray KisColorManager::displayProfile(const QString &device, int profile) const-{- return d->colord->deviceProfile(device, profile);-}--KisColorManager *KisColorManager::instance()-{- return s_instance;-}