File indexing completed on 2024-03-24 15:44:21

0001 /***************************************************************************
0002  *   Copyright (C) 2013 by Daniel Nicoletti <dantti12@gmail.com>           *
0003  *                                                                         *
0004  *   This program is free software; you can redistribute it and/or modify  *
0005  *   it under the terms of the GNU General Public License as published by  *
0006  *   the Free Software Foundation; either version 2 of the License, or     *
0007  *   (at your option) any later version.                                   *
0008  *                                                                         *
0009  *   This program is distributed in the hope that it will be useful,       *
0010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
0011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
0012  *   GNU General Public License for more details.                          *
0013  *                                                                         *
0014  *   You should have received a copy of the GNU General Public License     *
0015  *   along with this program; see the file COPYING. If not, write to       *
0016  *   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,  *
0017  *   Boston, MA 02110-1301, USA.                                           *
0018  ***************************************************************************/
0019 
0020 #pragma once
0021 
0022 #include <QMap>
0023 #include <QMetaType>
0024 
0025 typedef QMap<QString, QString> CdStringMap;
0026 Q_DECLARE_METATYPE(CdStringMap)
0027 
0028 struct Gamma {
0029     double red;
0030     double green;
0031     double blue;
0032 };
0033 typedef QList<Gamma> CdGamaList;
0034 Q_DECLARE_METATYPE(CdGamaList)
0035 
0036 /* defined in org.freedesktop.ColorManager.Device.xml */
0037 #define CD_DEVICE_PROPERTY_MODEL "Model"
0038 #define CD_DEVICE_PROPERTY_KIND "Kind"
0039 #define CD_DEVICE_PROPERTY_VENDOR "Vendor"
0040 #define CD_DEVICE_PROPERTY_SERIAL "Serial"
0041 #define CD_DEVICE_PROPERTY_COLORSPACE "Colorspace"
0042 #define CD_DEVICE_PROPERTY_FORMAT "Format"
0043 #define CD_DEVICE_PROPERTY_MODE "Mode"
0044 #define CD_DEVICE_PROPERTY_PROFILES "Profiles"
0045 #define CD_DEVICE_PROPERTY_CREATED "Created"
0046 #define CD_DEVICE_PROPERTY_MODIFIED "Modified"
0047 #define CD_DEVICE_PROPERTY_METADATA "Metadata"
0048 #define CD_DEVICE_PROPERTY_ID "DeviceId"
0049 #define CD_DEVICE_PROPERTY_SCOPE "Scope"
0050 #define CD_DEVICE_PROPERTY_OWNER "Owner"
0051 #define CD_DEVICE_PROPERTY_SEAT "Seat"
0052 #define CD_DEVICE_PROPERTY_PROFILING_INHIBITORS "ProfilingInhibitors"
0053 #define CD_DEVICE_PROPERTY_ENABLED "Enabled"
0054 #define CD_DEVICE_PROPERTY_EMBEDDED "Embedded"
0055 
0056 /* defined in metadata-spec.txt */
0057 #define CD_DEVICE_METADATA_XRANDR_NAME "XRANDR_name"
0058 #define CD_DEVICE_METADATA_OUTPUT_EDID_MD5 "OutputEdidMd5"
0059 #define CD_DEVICE_METADATA_OUTPUT_PRIORITY "OutputPriority"
0060 #define CD_DEVICE_METADATA_OUTPUT_PRIORITY_PRIMARY "primary"
0061 #define CD_DEVICE_METADATA_OUTPUT_PRIORITY_SECONDARY "secondary"
0062 #define CD_DEVICE_METADATA_OWNER_CMDLINE "OwnerCmdline"