2015-09-12 11:38:44 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2015 Albert Vaca <albertvaka@gmail.com>
|
2015-09-12 11:38:44 +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
|
2015-09-12 11:38:44 +01:00
|
|
|
*/
|
|
|
|
|
2023-07-21 19:22:59 +01:00
|
|
|
#pragma once
|
2015-09-12 11:38:44 +01:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
#include <QFileSystemWatcher>
|
|
|
|
#include <QMap>
|
|
|
|
#include <QPair>
|
|
|
|
#include <QString>
|
2022-09-10 22:23:52 +01:00
|
|
|
#include <core/kdeconnectplugin.h>
|
2015-09-12 11:38:44 +01:00
|
|
|
|
2023-07-22 10:37:35 +01:00
|
|
|
class RunCommandPlugin : public KdeConnectPlugin
|
2015-09-12 11:38:44 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
explicit RunCommandPlugin(QObject *parent, const QVariantList &args);
|
2015-09-12 11:38:44 +01:00
|
|
|
|
2023-07-31 08:25:45 +01:00
|
|
|
void receivePacket(const NetworkPacket &np) override;
|
2016-06-20 08:05:02 +01:00
|
|
|
void connected() override;
|
2015-09-12 11:38:44 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void sendConfig();
|
|
|
|
};
|