Commit 27e2e851 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Add manufacturer, model, and serialNumber properties to AbstractOutput

This can be useful for the colord integration plugin.
parent b186f867
......@@ -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
......@@ -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.
......
......@@ -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();
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment