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 <core/kdeconnectplugin.h>
|
|
|
|
#include <QFile>
|
|
|
|
#include <QFileSystemWatcher>
|
|
|
|
#include <QMap>
|
|
|
|
#include <QPair>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class Q_DECL_EXPORT RunCommandPlugin
|
|
|
|
: public KdeConnectPlugin
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-09-03 20:39:44 +01:00
|
|
|
explicit RunCommandPlugin(QObject* parent, const QVariantList& args);
|
2016-06-20 08:05:02 +01:00
|
|
|
~RunCommandPlugin() override;
|
2015-09-12 11:38:44 +01:00
|
|
|
|
2018-03-04 19:48:51 +00: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
|