File indexing completed on 2024-04-14 04:51:49

0001 /**
0002  * SPDX-FileCopyrightText: 2015 Albert Vaca <albertvaka@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 
0011 #include <QFile>
0012 #include <QFileSystemWatcher>
0013 #include <QMap>
0014 #include <QPair>
0015 #include <QString>
0016 #include <core/kdeconnectplugin.h>
0017 
0018 class RunCommandPlugin : public KdeConnectPlugin
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit RunCommandPlugin(QObject *parent, const QVariantList &args);
0024 
0025     void receivePacket(const NetworkPacket &np) override;
0026     void connected() override;
0027 
0028 private:
0029     void sendConfig();
0030 };