File indexing completed on 2024-04-21 04:56:53
0001 /** 0002 * SPDX-FileCopyrightText: 2019 Weixuan XIAO <veyx.shaw@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 #include <QProcess> 0011 0012 #include <core/kdeconnectplugin.h> 0013 0014 class ScreensaverInhibitPlugin : public KdeConnectPlugin 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit ScreensaverInhibitPlugin(QObject *parent, const QVariantList &args); 0020 ~ScreensaverInhibitPlugin() override; 0021 0022 private: 0023 QProcess *m_caffeinateProcess; 0024 };