Changeset View
Changeset View
Standalone View
Standalone View
plugins/clipboard/clipboardplugin.h
Show All 21 Lines | |||||
22 | #define CLIPBOARDPLUGIN_H | 22 | #define CLIPBOARDPLUGIN_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | #include <QClipboard> | 25 | #include <QClipboard> | ||
26 | #include <QLoggingCategory> | 26 | #include <QLoggingCategory> | ||
27 | #include <core/kdeconnectplugin.h> | 27 | #include <core/kdeconnectplugin.h> | ||
28 | 28 | | |||
29 | Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CLIPBOARD) | 29 | Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CLIPBOARD) | ||
30 | #define PACKAGE_TYPE_CLIPBOARD QStringLiteral("kdeconnect.clipboard") | 30 | #define PACKET_TYPE_CLIPBOARD QStringLiteral("kdeconnect.clipboard") | ||
31 | 31 | | |||
32 | class ClipboardPlugin | 32 | class ClipboardPlugin | ||
33 | : public KdeConnectPlugin | 33 | : public KdeConnectPlugin | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | 36 | | |||
37 | public: | 37 | public: | ||
38 | explicit ClipboardPlugin(QObject* parent, const QVariantList& args); | 38 | explicit ClipboardPlugin(QObject* parent, const QVariantList& args); | ||
39 | 39 | | |||
40 | bool receivePackage(const NetworkPackage& np) override; | 40 | bool receivePacket(const NetworkPacket& np) override; | ||
41 | void connected() override { } | 41 | void connected() override { } | ||
42 | 42 | | |||
43 | private Q_SLOTS: | 43 | private Q_SLOTS: | ||
44 | void propagateClipboard(const QString& content); | 44 | void propagateClipboard(const QString& content); | ||
45 | 45 | | |||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | #endif | 48 | #endif |