Changeset View
Changeset View
Standalone View
Standalone View
applets/showdesktop/plugin/showdesktop.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2008 Petri Damsten <damu@iki.fi> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2 of | ||||
7 | * the License, 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 General Public License | ||||
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef SHOWDESKTOP_HEADER | ||||
19 | #define SHOWDESKTOP_HEADER | ||||
20 | | ||||
21 | #include <QObject> | ||||
22 | | ||||
23 | class ShowDesktop : public QObject | ||||
24 | { | ||||
25 | Q_OBJECT | ||||
26 | | ||||
27 | Q_PROPERTY(bool showingDesktop READ showingDesktop WRITE setShowingDesktop NOTIFY showingDesktopChanged) | ||||
28 | | ||||
29 | public: | ||||
30 | explicit ShowDesktop(QObject *parent = nullptr); | ||||
31 | ~ShowDesktop() override; | ||||
32 | | ||||
33 | bool showingDesktop() const; | ||||
34 | void setShowingDesktop(bool showingDesktop); | ||||
35 | | ||||
36 | Q_INVOKABLE void minimizeAll(); | ||||
37 | | ||||
38 | Q_SIGNALS: | ||||
39 | void showingDesktopChanged(bool showingDesktop); | ||||
40 | | ||||
41 | }; | ||||
42 | | ||||
43 | #endif //SHOWDESKTOP_HEADER |