Changeset View
Changeset View
Standalone View
Standalone View
src/server/outputdevice_interface.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | * Represents an output device, the difference to Output is that this output can be disabled, | 42 | * Represents an output device, the difference to Output is that this output can be disabled, | ||
43 | * so not currently used to display content. | 43 | * so not currently used to display content. | ||
44 | * | 44 | * | ||
45 | * @see OutputManagementInterface | 45 | * @see OutputManagementInterface | ||
46 | * @since 5.5 | 46 | * @since 5.5 | ||
47 | */ | 47 | */ | ||
48 | class KWAYLANDSERVER_EXPORT OutputDeviceInterface : public Global | 48 | class KWAYLANDSERVER_EXPORT OutputDeviceInterface : public Global | ||
49 | { | 49 | { | ||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
romangg: What do you mean with "needs to be explicit"? | |||||
51 | Q_PROPERTY(QSize physicalSize READ physicalSize WRITE setPhysicalSize NOTIFY physicalSizeChanged) | 51 | Q_PROPERTY(QSize physicalSize READ physicalSize WRITE setPhysicalSize NOTIFY physicalSizeChanged) | ||
52 | Q_PROPERTY(QPoint globalPosition READ globalPosition WRITE setGlobalPosition NOTIFY globalPositionChanged) | 52 | Q_PROPERTY(QPoint globalPosition READ globalPosition WRITE setGlobalPosition NOTIFY globalPositionChanged) | ||
53 | Q_PROPERTY(QString manufacturer READ manufacturer WRITE setManufacturer NOTIFY manufacturerChanged) | 53 | Q_PROPERTY(QString manufacturer READ manufacturer WRITE setManufacturer NOTIFY manufacturerChanged) | ||
54 | Q_PROPERTY(QString model READ model WRITE setModel NOTIFY modelChanged) | 54 | Q_PROPERTY(QString model READ model WRITE setModel NOTIFY modelChanged) | ||
55 | Q_PROPERTY(QString serialNumber READ serialNumber WRITE setSerialNumber NOTIFY serialNumberChanged) | ||||
56 | Q_PROPERTY(QString eisaId READ eisaId WRITE setEisaId NOTIFY eisaIdChanged) | ||||
55 | Q_PROPERTY(QSize pixelSize READ pixelSize NOTIFY pixelSizeChanged) | 57 | Q_PROPERTY(QSize pixelSize READ pixelSize NOTIFY pixelSizeChanged) | ||
56 | Q_PROPERTY(int refreshRate READ refreshRate NOTIFY refreshRateChanged) | 58 | Q_PROPERTY(int refreshRate READ refreshRate NOTIFY refreshRateChanged) | ||
57 | Q_PROPERTY(qreal scale READ scaleF WRITE setScaleF NOTIFY scaleFChanged) | 59 | Q_PROPERTY(qreal scale READ scaleF WRITE setScaleF NOTIFY scaleFChanged) | ||
58 | Q_PROPERTY(QByteArray edid READ edid WRITE setEdid NOTIFY edidChanged) | 60 | Q_PROPERTY(QByteArray edid READ edid WRITE setEdid NOTIFY edidChanged) | ||
59 | Q_PROPERTY(OutputDeviceInterface::Enablement enabled READ enabled WRITE setEnabled NOTIFY enabledChanged) | 61 | Q_PROPERTY(OutputDeviceInterface::Enablement enabled READ enabled WRITE setEnabled NOTIFY enabledChanged) | ||
60 | Q_PROPERTY(QByteArray uuid READ uuid WRITE setUuid NOTIFY uuidChanged) | 62 | Q_PROPERTY(QByteArray uuid READ uuid WRITE setUuid NOTIFY uuidChanged) | ||
61 | public: | 63 | public: | ||
62 | enum class SubPixel { | 64 | enum class SubPixel { | ||
Show All 35 Lines | 97 | struct ColorCurves { | |||
98 | bool operator!=(const ColorCurves &cc) const; | 100 | bool operator!=(const ColorCurves &cc) const; | ||
99 | }; | 101 | }; | ||
100 | virtual ~OutputDeviceInterface(); | 102 | virtual ~OutputDeviceInterface(); | ||
101 | 103 | | |||
102 | QSize physicalSize() const; | 104 | QSize physicalSize() const; | ||
103 | QPoint globalPosition() const; | 105 | QPoint globalPosition() const; | ||
104 | QString manufacturer() const; | 106 | QString manufacturer() const; | ||
105 | QString model() const; | 107 | QString model() const; | ||
108 | QString serialNumber() const; | ||||
109 | QString eisaId() const; | ||||
106 | QSize pixelSize() const; | 110 | QSize pixelSize() const; | ||
107 | int refreshRate() const; | 111 | int refreshRate() const; | ||
108 | int scale() const; | 112 | int scale() const; | ||
109 | qreal scaleF() const; | 113 | qreal scaleF() const; | ||
110 | SubPixel subPixel() const; | 114 | SubPixel subPixel() const; | ||
111 | Transform transform() const; | 115 | Transform transform() const; | ||
112 | ColorCurves colorCurves() const; | 116 | ColorCurves colorCurves() const; | ||
113 | QList<Mode> modes() const; | 117 | QList<Mode> modes() const; | ||
114 | int currentModeId() const; | 118 | int currentModeId() const; | ||
115 | 119 | | |||
116 | QByteArray edid() const; | 120 | QByteArray edid() const; | ||
117 | OutputDeviceInterface::Enablement enabled() const; | 121 | OutputDeviceInterface::Enablement enabled() const; | ||
118 | QByteArray uuid() const; | 122 | QByteArray uuid() const; | ||
119 | 123 | | |||
120 | void setPhysicalSize(const QSize &size); | 124 | void setPhysicalSize(const QSize &size); | ||
121 | void setGlobalPosition(const QPoint &pos); | 125 | void setGlobalPosition(const QPoint &pos); | ||
122 | void setManufacturer(const QString &manufacturer); | 126 | void setManufacturer(const QString &manufacturer); | ||
123 | void setModel(const QString &model); | 127 | void setModel(const QString &model); | ||
128 | void setSerialNumber(const QString &serialNumber); | ||||
129 | void setEisaId(const QString &eisaId); | ||||
124 | void setScale(int scale); | 130 | void setScale(int scale); | ||
125 | void setScaleF(qreal scale); | 131 | void setScaleF(qreal scale); | ||
126 | void setSubPixel(SubPixel subPixel); | 132 | void setSubPixel(SubPixel subPixel); | ||
127 | void setTransform(Transform transform); | 133 | void setTransform(Transform transform); | ||
128 | void setColorCurves(const ColorCurves &colorCurves); | 134 | void setColorCurves(const ColorCurves &colorCurves); | ||
129 | void addMode(Mode &mode); | 135 | void addMode(Mode &mode); | ||
130 | void setCurrentMode(const int modeId); | 136 | void setCurrentMode(const int modeId); | ||
131 | 137 | | |||
132 | void setEdid(const QByteArray &edid); | 138 | void setEdid(const QByteArray &edid); | ||
133 | void setEnabled(OutputDeviceInterface::Enablement enabled); | 139 | void setEnabled(OutputDeviceInterface::Enablement enabled); | ||
134 | void setUuid(const QByteArray &uuid); | 140 | void setUuid(const QByteArray &uuid); | ||
135 | 141 | | |||
136 | static OutputDeviceInterface *get(wl_resource *native); | 142 | static OutputDeviceInterface *get(wl_resource *native); | ||
137 | static QList<OutputDeviceInterface *>list(); | 143 | static QList<OutputDeviceInterface *>list(); | ||
138 | 144 | | |||
139 | Q_SIGNALS: | 145 | Q_SIGNALS: | ||
140 | void physicalSizeChanged(const QSize&); | 146 | void physicalSizeChanged(const QSize&); | ||
141 | void globalPositionChanged(const QPoint&); | 147 | void globalPositionChanged(const QPoint&); | ||
142 | void manufacturerChanged(const QString&); | 148 | void manufacturerChanged(const QString&); | ||
143 | void modelChanged(const QString&); | 149 | void modelChanged(const QString&); | ||
150 | void serialNumberChanged(const QString&); | ||||
151 | void eisaIdChanged(const QString &); | ||||
144 | void pixelSizeChanged(const QSize&); | 152 | void pixelSizeChanged(const QSize&); | ||
145 | void refreshRateChanged(int); | 153 | void refreshRateChanged(int); | ||
146 | //@deprecated see scaleChanged(real) | 154 | //@deprecated see scaleChanged(real) | ||
147 | void scaleChanged(int); | 155 | void scaleChanged(int); | ||
148 | void scaleFChanged(qreal); | 156 | void scaleFChanged(qreal); | ||
149 | void subPixelChanged(SubPixel); | 157 | void subPixelChanged(SubPixel); | ||
150 | void transformChanged(Transform); | 158 | void transformChanged(Transform); | ||
151 | void colorCurvesChanged(ColorCurves); | 159 | void colorCurvesChanged(ColorCurves); | ||
Show All 24 Lines |
What do you mean with "needs to be explicit"?