Changeset View
Changeset View
Standalone View
Standalone View
applets/systemmonitor/systemmonitor/systemmonitor.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2019 Marco Martin <mart@kde.org> * | ||||
3 | * | ||||
4 | * * | ||||
5 | * This program is free software; you can redistribute it and/or modify * | ||||
6 | * it under the terms of the GNU General Public License as published by * | ||||
7 | * the Free Software Foundation; either version 2 of the License, or * | ||||
8 | * (at your option) any later version. * | ||||
9 | * * | ||||
10 | * This program is distributed in the hope that it will be useful, * | ||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||||
13 | * GNU General Public License for more details. * | ||||
14 | * * | ||||
15 | * You should have received a copy of the GNU General Public License * | ||||
16 | * along with this program; if not, write to the * | ||||
17 | * Free Software Foundation, Inc., * | ||||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||||
19 | ***************************************************************************/ | ||||
20 | | ||||
21 | #pragma once | ||||
22 | | ||||
23 | #include <QPointer> | ||||
24 | #include <QStandardItemModel> | ||||
25 | #include <Plasma/Applet> | ||||
26 | | ||||
27 | #include <KDesktopFile> | ||||
28 | #include <KPackage/Package> | ||||
29 | | ||||
30 | class ApplicationListModel; | ||||
31 | class QQuickItem; | ||||
32 | class SensorFace; | ||||
33 | class SensorFaceController; | ||||
34 | | ||||
35 | class KConfigLoader; | ||||
36 | | ||||
37 | | ||||
38 | class SystemMonitor : public Plasma::Applet | ||||
39 | { | ||||
40 | Q_OBJECT | ||||
41 | | ||||
42 | Q_PROPERTY(SensorFaceController *faceController READ faceController CONSTANT) | ||||
43 | | ||||
44 | public: | ||||
45 | SystemMonitor( QObject *parent, const QVariantList &args ); | ||||
46 | ~SystemMonitor() override; | ||||
47 | | ||||
48 | void init() override; | ||||
49 | | ||||
50 | SensorFaceController *faceController() const; | ||||
51 | | ||||
52 | public Q_SLOTS: | ||||
53 | void configChanged() override; | ||||
54 | | ||||
55 | private: | ||||
56 | SensorFaceController *m_sensorFaceController = nullptr; | ||||
57 | QString m_pendingStartupPreset; | ||||
58 | }; | ||||
59 | |