aboutsummaryrefslogtreecommitdiff
path: root/lib/networkaccessmanager.h
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-08-31 21:47:10 +0200
committerTobias Fella <fella@posteo.de>2021-09-05 22:09:17 +0200
commit4bab0f2ef2c68b478d669f90557d6bef6332e823 (patch)
tree59059f327120c318ee216c01040ee4aad8851ad0 /lib/networkaccessmanager.h
parent06a8ef6ebed5962117121486059ba46dc7f6d4f9 (diff)
downloadlibquotient-4bab0f2ef2c68b478d669f90557d6bef6332e823.tar.gz
libquotient-4bab0f2ef2c68b478d669f90557d6bef6332e823.zip
Implement the mxc protocol in the NetworkAccessManager
Allows images to be loaded using the NetworkAccessManager instead of an ImageProvider
Diffstat (limited to 'lib/networkaccessmanager.h')
-rw-r--r--lib/networkaccessmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/networkaccessmanager.h b/lib/networkaccessmanager.h
index 47729a1b..5d262f98 100644
--- a/lib/networkaccessmanager.h
+++ b/lib/networkaccessmanager.h
@@ -8,6 +8,8 @@
#include <memory>
namespace Quotient {
+class Room;
+class Connection;
class NetworkAccessManager : public QNetworkAccessManager {
Q_OBJECT
public:
@@ -21,6 +23,10 @@ public:
/** Get a pointer to the singleton */
static NetworkAccessManager* instance();
+public Q_SLOTS:
+ QStringList supportedSchemesImplementation() const;
+ QUrl urlForRoomEvent(Room *room, const QString &eventId, const QString &mediaId);
+ QUrl urlForFile(Connection *connection, const QString &mediaId);
private:
QNetworkReply* createRequest(Operation op, const QNetworkRequest& request,
QIODevice* outgoingData = Q_NULLPTR) override;