Changeset View
Changeset View
Standalone View
Standalone View
kcm/output_identifier.h
- This file was added.
1 | /******************************************************************** | ||||
---|---|---|---|---|---|
2 | Copyright © 2019 Roman Gilg <subdiff@gmail.com> | ||||
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 published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or | ||||
7 | (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 General Public License | ||||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | *********************************************************************/ | ||||
17 | #pragma once | ||||
18 | | ||||
19 | #include <kscreen/config.h> | ||||
20 | | ||||
21 | #include <QTimer> | ||||
22 | #include <QVector> | ||||
23 | | ||||
24 | class QQuickView; | ||||
25 | | ||||
26 | class OutputIdentifier : public QObject | ||||
27 | { | ||||
28 | Q_OBJECT | ||||
29 | | ||||
30 | public: | ||||
31 | explicit OutputIdentifier (KScreen::ConfigPtr config, QObject *parent = nullptr); | ||||
32 | ~OutputIdentifier() override; | ||||
33 | | ||||
34 | Q_SIGNALS: | ||||
35 | void identifiersFinished(); | ||||
36 | | ||||
37 | protected: | ||||
38 | bool eventFilter(QObject *object, QEvent *event) override; | ||||
39 | | ||||
40 | private: | ||||
41 | QVector<QQuickView*> m_views; | ||||
42 | QTimer m_timer; | ||||
43 | }; |