diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-04-03 19:33:24 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-04-03 20:11:40 +0900 |
commit | 008207f178475531c0a8a86b2192c09d7134ad0e (patch) | |
tree | a97e27a5dc59ab2e03ce10764006a8c6616648b6 /lib/room.h | |
parent | 3ea5915d864040dd7f1b1cdffcacd67850a644bf (diff) | |
download | libquotient-008207f178475531c0a8a86b2192c09d7134ad0e.tar.gz libquotient-008207f178475531c0a8a86b2192c09d7134ad0e.zip |
room.h: more doc-comments
Diffstat (limited to 'lib/room.h')
-rw-r--r-- | lib/room.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -358,8 +358,28 @@ namespace QMatrixClient Q_INVOKABLE QUrl urlToThumbnail(const QString& eventId) const; Q_INVOKABLE QUrl urlToDownload(const QString& eventId) const; + + /// Get a file name for downloading for a given event id + /*! + * The event MUST be RoomMessageEvent and have content + * for downloading. \sa RoomMessageEvent::hasContent + */ Q_INVOKABLE QString fileNameToDownload(const QString& eventId) const; + + /// Get information on file upload/download + /*! + * \param id uploads are identified by the corresponding event's + * transactionId (because uploads are done before + * the event is even sent), while downloads are using + * the normal event id for identifier. + */ Q_INVOKABLE FileTransferInfo fileTransferInfo(const QString& id) const; + + /// Get the URL to the actual file source in a unified way + /*! + * For uploads it will return a URL to a local file; for downloads + * the URL will be taken from the corresponding room event. + */ Q_INVOKABLE QUrl fileSource(const QString& id) const; /** Pretty-prints plain text into HTML |