2019-06-30 21:40:23 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2019 Weixuan XIAO <veyx.shaw@gmail.com>
|
2019-06-30 21:40:23 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2019-06-30 21:40:23 +01:00
|
|
|
*/
|
|
|
|
|
2023-07-21 19:22:59 +01:00
|
|
|
#pragma once
|
2019-06-30 21:40:23 +01:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QProcess>
|
|
|
|
|
|
|
|
#include <core/kdeconnectplugin.h>
|
|
|
|
|
2023-07-22 10:37:35 +01:00
|
|
|
class ScreensaverInhibitPlugin : public KdeConnectPlugin
|
2019-06-30 21:40:23 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
explicit ScreensaverInhibitPlugin(QObject *parent, const QVariantList &args);
|
2019-06-30 21:40:23 +01:00
|
|
|
~ScreensaverInhibitPlugin() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QProcess *m_caffeinateProcess;
|
|
|
|
};
|