add more spacing
[personal-kdebase.git] / workspace / libs / kephal / outputs / simpleoutput.h
blob066efbdcf0cd0f8f2dfff3b530554b411e7d62c2
1 /*
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"
26 #include <QSize>
27 #include <QPoint>
28 #include <QObject>
31 namespace Kephal {
33 class SimpleOutput : public Output {
34 Q_OBJECT
35 public:
36 SimpleOutput(QObject * parent, QString id, QSize resolution, QPoint position, bool connected, bool activated);
37 SimpleOutput(QObject * parent);
38 SimpleOutput(QObject * parent, Output * output);
40 QString id();
42 QSize size();
43 QSize preferredSize();
44 QList<QSize> availableSizes();
45 QPoint position();
46 QString vendor();
47 int productId();
48 unsigned int serialNumber();
50 bool isConnected();
51 bool isActivated();
53 Rotation rotation();
54 bool reflectX();
55 bool reflectY();
56 float rate();
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);
75 private:
76 QString m_id;
77 QSize m_size;
78 QSize m_preferredSize;
79 QList<QSize> m_availableSizes;
80 QPoint m_position;
81 bool m_connected;
82 bool m_activated;
83 QString m_vendor;
84 int m_productId;
85 unsigned int m_serialNumber;
86 Rotation m_rotation;
87 bool m_reflectX;
88 bool m_reflectY;
89 float m_rate;
90 QList<float> m_rates;
96 #endif // KEPHAL_SIMPLESCREEN_H