~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to libs/kephal/client/noconfigurations.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   Copyright 2008 Aike J Sommer <dev@aikesommer.name>
 
3
 *
 
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.
 
8
 *
 
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
 
13
 *
 
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.
 
18
 */
 
19
 
 
20
 
 
21
#include "noconfigurations.h"
 
22
 
 
23
 
 
24
namespace Kephal {
 
25
 
 
26
    SimpleConfiguration::SimpleConfiguration(NoConfigurations * parent)
 
27
        : Configuration(parent)
 
28
    {
 
29
    }
 
30
 
 
31
    QString SimpleConfiguration::name() {
 
32
        return "simple";
 
33
    }
 
34
 
 
35
    bool SimpleConfiguration::isModifiable() {
 
36
        return false;
 
37
    }
 
38
 
 
39
    bool SimpleConfiguration::isActivated() {
 
40
        return true;
 
41
    }
 
42
 
 
43
    QMap<int, QPoint> SimpleConfiguration::layout() {
 
44
        return QMap<int, QPoint>();
 
45
    }
 
46
 
 
47
    void SimpleConfiguration::activate() {
 
48
    }
 
49
 
 
50
    int SimpleConfiguration::primaryScreen() {
 
51
        return 0;
 
52
    }
 
53
 
 
54
 
 
55
 
 
56
    NoConfigurations::NoConfigurations(QObject * parent)
 
57
        : Configurations(parent)
 
58
    {
 
59
        m_config = new SimpleConfiguration(this);
 
60
    }
 
61
 
 
62
    QMap<QString, Configuration *> NoConfigurations::configurations() {
 
63
        QMap<QString, Configuration *> result;
 
64
        result.insert(m_config->name(), m_config);
 
65
        return result;
 
66
    }
 
67
 
 
68
    Configuration * NoConfigurations::findConfiguration() {
 
69
        return m_config;
 
70
    }
 
71
 
 
72
    Configuration * NoConfigurations::activeConfiguration() {
 
73
        return m_config;
 
74
    }
 
75
 
 
76
    QList<Configuration *> NoConfigurations::alternateConfigurations() {
 
77
        return QList<Configuration *>();
 
78
    }
 
79
 
 
80
    QList<QPoint> NoConfigurations::possiblePositions(const Output * output) {
 
81
        Q_UNUSED(output)
 
82
        return QList<QPoint>();
 
83
    }
 
84
 
 
85
    bool NoConfigurations::move(Output * output, const QPoint & position) {
 
86
        Q_UNUSED(output)
 
87
        Q_UNUSED(position)
 
88
        return false;
 
89
    }
 
90
 
 
91
    bool NoConfigurations::resize(Output * output, const QSize & size) {
 
92
        Q_UNUSED(output)
 
93
        Q_UNUSED(size)
 
94
        return false;
 
95
    }
 
96
 
 
97
    int NoConfigurations::screen(Output * output) {
 
98
        Q_UNUSED(output)
 
99
        return -1;
 
100
    }
 
101
 
 
102
    void NoConfigurations::applyOutputSettings() {
 
103
    }
 
104
 
 
105
    bool NoConfigurations::rotate(Output * output, Rotation rotation) {
 
106
        Q_UNUSED(output)
 
107
        Q_UNUSED(rotation)
 
108
        return false;
 
109
    }
 
110
 
 
111
    bool NoConfigurations::changeRate(Output * output, float rate) {
 
112
        Q_UNUSED(output)
 
113
        Q_UNUSED(rate)
 
114
        return false;
 
115
    }
 
116
 
 
117
    bool NoConfigurations::reflectX(Output * output, bool reflect) {
 
118
        Q_UNUSED(output)
 
119
        Q_UNUSED(reflect)
 
120
        return false;
 
121
    }
 
122
 
 
123
    bool NoConfigurations::reflectY(Output * output, bool reflect) {
 
124
        Q_UNUSED(output)
 
125
        Q_UNUSED(reflect)
 
126
        return false;
 
127
    }
 
128
 
 
129
    void NoConfigurations::setPolling(bool polling) {
 
130
        Q_UNUSED(polling)
 
131
    }
 
132
 
 
133
    bool NoConfigurations::polling() {
 
134
        return false;
 
135
    }
 
136
 
 
137
    void NoConfigurations::confirm() {
 
138
    }
 
139
 
 
140
    void NoConfigurations::revert() {
 
141
    }
 
142
 
 
143
}
 
144
 
 
145