Changeset View
Changeset View
Standalone View
Standalone View
tests/osd/osdtest.h
- This file was added.
1 | /************************************************************************************* | ||||
---|---|---|---|---|---|
2 | * Copyright 2016 Sebastian Kügler <sebas@kde.org> * | ||||
3 | * * | ||||
4 | * This library is free software; you can redistribute it and/or * | ||||
5 | * modify it under the terms of the GNU Lesser General Public * | ||||
6 | * License as published by the Free Software Foundation; either * | ||||
7 | * version 2.1 of the License, or (at your option) any later version. * | ||||
8 | * * | ||||
9 | * This library 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 GNU * | ||||
12 | * Lesser General Public License for more details. * | ||||
13 | * * | ||||
14 | * You should have received a copy of the GNU Lesser General Public * | ||||
15 | * License along with this library; if not, write to the Free Software * | ||||
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * | ||||
17 | *************************************************************************************/ | ||||
18 | | ||||
19 | #ifndef KSCREEN_OSDTEST_H | ||||
20 | #define KSCREEN_OSDTEST_H | ||||
21 | | ||||
22 | #include <QObject> | ||||
23 | | ||||
24 | | ||||
25 | namespace KScreen | ||||
26 | { | ||||
27 | | ||||
28 | class OsdTest : public QObject | ||||
29 | { | ||||
30 | Q_OBJECT | ||||
31 | | ||||
32 | public: | ||||
33 | explicit OsdTest(QObject *parent = nullptr); | ||||
34 | virtual ~OsdTest(); | ||||
35 | | ||||
36 | void setUseDBus(bool yesno); | ||||
37 | | ||||
38 | void showGenericOsd(const QString &icon, const QString &message); | ||||
39 | void showOutputIdentifiers(); | ||||
40 | | ||||
41 | private: | ||||
42 | bool m_useDBus = false; | ||||
43 | }; | ||||
44 | | ||||
45 | } // namespace | ||||
46 | | ||||
47 | #endif // KSCREEN_OSDTEST_H |