diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-28 12:55:21 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-01-05 21:01:29 +0900 |
commit | 143fffcf3962184befbbe37bebc5544d25bc7c39 (patch) | |
tree | 962572db2caa15bcd9c57f117dfb24dc36c4ee57 /lib/room.h | |
parent | e017dd42637071687f88f5a36e7e03f1536332be (diff) | |
download | libquotient-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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(); |