From 4351f4627ba9e71775438dd26c9acddd002c7e11 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 10 Feb 2026 10:41:02 +0100 Subject: Initial commit --- .../mastodontransferplugin.h | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h (limited to 'transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h') diff --git a/transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h b/transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h new file mode 100644 index 0000000..68cf188 --- /dev/null +++ b/transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h @@ -0,0 +1,27 @@ +#ifndef MASTODONTRANSFERPLUGIN_H +#define MASTODONTRANSFERPLUGIN_H + +#include + +#include + +class QNetworkAccessManager; + +class Q_DECL_EXPORT MastodonTransferPlugin : public QObject, public TransferPluginInterface +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.sailfishos.transfer.plugin.mastodon") + Q_INTERFACES(TransferPluginInterface) + +public: + MastodonTransferPlugin(); + ~MastodonTransferPlugin(); + + MediaTransferInterface *transferObject(); + QString pluginId() const; + +private: + QNetworkAccessManager *m_qnam; +}; + +#endif // MASTODONTRANSFERPLUGIN_H -- cgit v1.2.3