File indexing completed on 2025-03-23 03:45:53
0001 /* 0002 SPDX-FileCopyrightText: 2014 Alejandro Fiestas Olivares <afiestas@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef SOLID_POWER_NOTIFIER_H 0008 #define SOLID_POWER_NOTIFIER_H 0009 0010 #include <QObject> 0011 0012 namespace Solid 0013 { 0014 class PowerNotifier : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit PowerNotifier(QObject *parent = nullptr) 0019 : QObject(parent) 0020 { 0021 } 0022 0023 Q_SIGNALS: 0024 void acPluggedChanged(bool plugged); 0025 void aboutToSuspend(); 0026 void resumeFromSuspend(); 0027 }; 0028 } 0029 0030 #endif // SOLID_POWER_NOTIFIER_H