2 * Copyright 2008 Aike J Sommer <dev@aikesommer.name>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef KEPHAL_SIMPLEOUTPUT_H
22 #define KEPHAL_SIMPLEOUTPUT_H
24 #include "kephal/outputs.h"
33 class SimpleOutput
: public Output
{
36 SimpleOutput(QObject
* parent
, QString id
, QSize resolution
, QPoint position
, bool connected
, bool activated
);
37 SimpleOutput(QObject
* parent
);
38 SimpleOutput(QObject
* parent
, Output
* output
);
43 QSize
preferredSize();
44 QList
<QSize
> availableSizes();
48 unsigned int serialNumber();
57 QList
<float> availableRates();
59 void _setId(const QString
& id
);
60 void _setSize(const QSize
& size
);
61 void _setPreferredSize(const QSize
& size
);
62 void _setAvailableSizes(const QList
<QSize
> & sizes
);
63 void _setPosition(const QPoint
& position
);
64 void _setActivated(bool activated
);
65 void _setConnected(bool connected
);
66 void _setVendor(const QString
& vendor
);
67 void _setProductId(int productId
);
68 void _setSerialNumber(unsigned int serialNumber
);
69 void _setRotation(Rotation rotation
);
70 void _setReflectX(bool reflect
);
71 void _setReflectY(bool reflect
);
72 void _setRate(float rate
);
73 void _setAvailableRates(const QList
<float> & rates
);
78 QSize m_preferredSize
;
79 QList
<QSize
> m_availableSizes
;
85 unsigned int m_serialNumber
;
96 #endif // KEPHAL_SIMPLESCREEN_H