File indexing completed on 2024-03-24 04:51:51
0001 /* 0002 * SPDX-FileCopyrightText: 2020 George Florea Bănuș <georgefb899@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #ifndef LOCKMANAGER_H 0008 #define LOCKMANAGER_H 0009 0010 #include <QObject> 0011 0012 class OrgFreedesktopScreenSaverInterface; 0013 0014 class LockManager : public QObject 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit LockManager(QObject *parent = nullptr); 0020 ~LockManager() = default; 0021 0022 public Q_SLOTS: 0023 void setInhibitionOn(); 0024 void setInhibitionOff(); 0025 0026 private: 0027 OrgFreedesktopScreenSaverInterface *m_iface{nullptr}; 0028 int m_cookie{-1}; 0029 }; 0030 0031 #endif // LOCKMANAGER_H