File indexing completed on 2024-12-15 04:23:42

0001 /*
0002     SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef SOLIDLOCKBACKEND_H
0008 #define SOLIDLOCKBACKEND_H
0009 
0010 #include <QObject>
0011 #include "../lockmanager.h"
0012 
0013 class OrgFreedesktopScreenSaverInterface;
0014 
0015 class SolidLockBackend : public LockBackend
0016 {
0017 
0018 public:
0019     explicit SolidLockBackend(QObject *parent = nullptr);
0020 
0021     void setInhibitionOff() override;
0022     void setInhibitionOn(const QString &explanation) override;
0023 
0024 private:
0025     OrgFreedesktopScreenSaverInterface* m_iface;
0026     int m_cookie;
0027 };
0028 
0029 #endif //  SOLIDLOCKBACKEND_H
0030