diff options
| author | Andrew Branson <andrew.branson@jolla.com> | 2026-02-10 10:41:02 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@jolla.com> | 2026-02-10 17:09:39 +0100 |
| commit | 4351f4627ba9e71775438dd26c9acddd002c7e11 (patch) | |
| tree | 3c72c980c5c81507109087bda67052b7ec8216b6 /transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h | |
Initial commit
Diffstat (limited to 'transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h')
| -rw-r--r-- | transferengine-plugins/mastodontransferplugin/mastodontransferplugin.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <QtCore/QObject> + +#include <transferplugininterface.h> + +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 |
