diff --git a/abstract_output.cpp b/abstract_output.cpp index c72f74efa0..c33a64a60c 100644 --- a/abstract_output.cpp +++ b/abstract_output.cpp @@ -103,4 +103,19 @@ bool AbstractOutput::setGammaRamp(const GammaRamp &gamma) return false; } +QString AbstractOutput::manufacturer() const +{ + return QString(); +} + +QString AbstractOutput::model() const +{ + return QString(); +} + +QString AbstractOutput::serialNumber() const +{ + return QString(); +} + } // namespace KWin diff --git a/abstract_output.h b/abstract_output.h index 090266dbf6..017cd76361 100644 --- a/abstract_output.h +++ b/abstract_output.h @@ -164,6 +164,19 @@ public: /** Returns the resolution of the output. */ virtual QSize pixelSize() const = 0; + /** + * Returns the manufacturer of the screen. + */ + virtual QString manufacturer() const; + /** + * Returns the model of the screen. + */ + virtual QString model() const; + /** + * Returns the serial number of the screen. + */ + virtual QString serialNumber() const; + Q_SIGNALS: /** * This signal is emitted when the geometry of this output has changed. diff --git a/abstract_wayland_output.cpp b/abstract_wayland_output.cpp index 5b74373a16..50566b9785 100644 --- a/abstract_wayland_output.cpp +++ b/abstract_wayland_output.cpp @@ -85,6 +85,21 @@ void AbstractWaylandOutput::setGlobalPos(const QPoint &pos) m_xdgOutputV1->done(); } +QString AbstractWaylandOutput::manufacturer() const +{ + return m_waylandOutputDevice->manufacturer(); +} + +QString AbstractWaylandOutput::model() const +{ + return m_waylandOutputDevice->model(); +} + +QString AbstractWaylandOutput::serialNumber() const +{ + return m_waylandOutputDevice->serialNumber(); +} + QSize AbstractWaylandOutput::modeSize() const { return m_waylandOutputDevice->pixelSize(); diff --git a/abstract_wayland_output.h b/abstract_wayland_output.h index 910835e92e..370d2d6ae3 100644 --- a/abstract_wayland_output.h +++ b/abstract_wayland_output.h @@ -92,6 +92,10 @@ public: return m_internal; } + QString manufacturer() const override; + QString model() const override; + QString serialNumber() const override; + void setGlobalPos(const QPoint &pos); void setScale(qreal scale);