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
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RUNCOMMANDPLUGIN_H
|
|
|
|
#define RUNCOMMANDPLUGIN_H
|
|
|
|
|
|
|
|
#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
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class Q_DECL_EXPORT 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
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
bool receivePacket(const NetworkPacket &np) override;
|
2016-06-20 08:05:02 +01:00
|
|
|
void connected() override;
|
2015-09-12 11:38:44 +01:00
|
|
|
|
2015-09-12 12:50:09 +01:00
|
|
|
private Q_SLOTS:
|
|
|
|
void configChanged();
|
|
|
|
|
2015-09-12 11:38:44 +01:00
|
|
|
private:
|
|
|
|
void sendConfig();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|