diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-10-02 02:58:35 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-10-02 23:01:13 +0200 |
| commit | d11198502e3bbc7838443147a6dc729f5d1b597d (patch) | |
| tree | d734e722d75b37691ca3c756a1d7c741cfbc7f9a /src/client/QXmppFileTransfer.h | |
| parent | b871f6d3557c20fc7d1456e5080c33ea90795c84 (diff) | |
| download | qxmpp-d11198502e3bbc7838443147a6dc729f5d1b597d.tar.gz | |
FileTransfer: Require some functions to be const
Diffstat (limited to 'src/client/QXmppFileTransfer.h')
| -rw-r--r-- | src/client/QXmppFileTransfer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/QXmppFileTransfer.h b/src/client/QXmppFileTransfer.h index 30a91aa9..16c12105 100644 --- a/src/client/QXmppFileTransfer.h +++ b/src/client/QXmppFileTransfer.h @@ -17,11 +17,11 @@ class QXMPP_EXPORT QXmppFileTransfer : public QObject public: /// Returns the current progress between 0.0 and 1.0. - virtual float progress() = 0; + virtual float progress() const = 0; virtual void cancel() = 0; - virtual bool isFinished() = 0; - virtual quint64 bytesTransferred() = 0; - virtual quint64 bytesTotal() = 0; + virtual bool isFinished() const = 0; + virtual quint64 bytesTransferred() const = 0; + virtual quint64 bytesTotal() const = 0; // TODO consider adding speed getter |
