summaryrefslogtreecommitdiff
path: root/transferengine-plugins/mastodontransferplugin/mastodonapi.h
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@jolla.com>2026-02-12 15:13:50 +0100
committerAndrew Branson <andrew.branson@jolla.com>2026-02-12 15:45:59 +0100
commit7e10e89d72cc3a2b5eb314aa76c340793e5e26dd (patch)
tree7de1130148126ad29a75ec83166b4812440ca77a /transferengine-plugins/mastodontransferplugin/mastodonapi.h
parentbce74e963abeb96a9c335f5461611dee544abc4c (diff)
Add support for text and link sharing in Mastodon transfer plugin
Diffstat (limited to 'transferengine-plugins/mastodontransferplugin/mastodonapi.h')
-rw-r--r--transferengine-plugins/mastodontransferplugin/mastodonapi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/transferengine-plugins/mastodontransferplugin/mastodonapi.h b/transferengine-plugins/mastodontransferplugin/mastodonapi.h
index 0ec3653..772ce89 100644
--- a/transferengine-plugins/mastodontransferplugin/mastodonapi.h
+++ b/transferengine-plugins/mastodontransferplugin/mastodonapi.h
@@ -26,6 +26,9 @@ public:
const QString &mimeType,
const QString &apiHost,
const QString &accessToken);
+ bool postStatus(const QString &statusText,
+ const QString &apiHost,
+ const QString &accessToken);
void cancelUpload();
@@ -43,7 +46,7 @@ private Q_SLOTS:
private:
static QString normalizeApiHost(const QString &rawHost);
- bool postStatus(const QString &mediaId);
+ bool postStatusInternal(const QString &mediaId);
void finishTransfer(QNetworkReply::NetworkError error, int httpCode, const QByteArray &data);
QMap<QNetworkReply*, API_CALL> m_replies;