not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / kephal / configurations / noconfigurations.h
blobb7eececa0537f80e444686e0db1aa83ddba0833c
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_NOCONFIGURATIONS_H
22 #define KEPHAL_NOCONFIGURATIONS_H
24 #include "kephal/configurations.h"
27 namespace Kephal {
29 class NoConfigurations;
31 class SimpleConfiguration : public Configuration {
32 Q_OBJECT
33 public:
34 SimpleConfiguration(NoConfigurations * parent);
36 QString name();
37 bool isModifiable();
38 bool isActivated();
39 QMap<int, QPoint> layout();
40 int primaryScreen();
42 public Q_SLOTS:
43 void activate();
46 class NoConfigurations : public Configurations {
47 Q_OBJECT
48 public:
49 NoConfigurations(QObject * parent);
51 QMap<QString, Configuration *> configurations();
52 Configuration * findConfiguration();
53 Configuration * activeConfiguration();
54 QList<Configuration *> alternateConfigurations();
55 QList<QPoint> possiblePositions(Output * output);
56 bool move(Output * output, const QPoint & position);
57 bool resize(Output * output, const QSize & size);
58 bool rotate(Output * output, Rotation rotation);
59 bool changeRate(Output * output, float rate);
60 bool reflectX(Output * output, bool reflect);
61 bool reflectY(Output * output, bool reflect);
62 int screen(Output * output);
63 void applyOutputSettings();
64 void setPolling(bool polling);
65 bool polling();
66 void confirm();
67 void revert();
69 private:
70 SimpleConfiguration * m_config;
75 #endif // KEPHAL_NOCONFIGURATIONS_H