aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-28 12:55:21 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 21:01:29 +0900
commit143fffcf3962184befbbe37bebc5544d25bc7c39 (patch)
tree962572db2caa15bcd9c57f117dfb24dc36c4ee57 /lib/room.h
parente017dd42637071687f88f5a36e7e03f1536332be (diff)
downloadlibquotient-143fffcf3962184befbbe37bebc5544d25bc7c39.tar.gz
libquotient-143fffcf3962184befbbe37bebc5544d25bc7c39.zip
Room::fileSource
Also: const'ified other methods related to file urls.
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/room.h b/lib/room.h
index b832977f..a166be37 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -342,10 +342,11 @@ namespace QMatrixClient
/// Get the list of users this room is a direct chat with
QList<User*> directChatUsers() const;
- Q_INVOKABLE QUrl urlToThumbnail(const QString& eventId);
- Q_INVOKABLE QUrl urlToDownload(const QString& eventId);
- Q_INVOKABLE QString fileNameToDownload(const QString& eventId);
+ Q_INVOKABLE QUrl urlToThumbnail(const QString& eventId) const;
+ Q_INVOKABLE QUrl urlToDownload(const QString& eventId) const;
+ Q_INVOKABLE QString fileNameToDownload(const QString& eventId) const;
Q_INVOKABLE FileTransferInfo fileTransferInfo(const QString& id) const;
+ Q_INVOKABLE QUrl fileSource(const QString& id) const;
/** Pretty-prints plain text into HTML
* As of now, it's exactly the same as QMatrixClient::prettyPrint();