diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-10-02 20:36:11 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-10-02 23:01:13 +0200 |
| commit | 2fe061ae4a5485201ecc79b163a2a3771d8f5be4 (patch) | |
| tree | e81733ee9eec3cb347780b45522f4e2a4ee44aab /src/client/QXmppFileTransfer.h | |
| parent | ada1907bb5f22e0820e1d1d8004cc23f2246e74b (diff) | |
| download | qxmpp-2fe061ae4a5485201ecc79b163a2a3771d8f5be4.tar.gz | |
FileUpload/Download: Avoid unnecessary virtual functions
Diffstat (limited to 'src/client/QXmppFileTransfer.h')
| -rw-r--r-- | src/client/QXmppFileTransfer.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/client/QXmppFileTransfer.h b/src/client/QXmppFileTransfer.h deleted file mode 100644 index 16c12105..00000000 --- a/src/client/QXmppFileTransfer.h +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im> -// -// SPDX-License-Identifier: LGPL-2.1-or-later - -#ifndef QXMPPFILETRANSFER_H -#define QXMPPFILETRANSFER_H - -#include "QXmppGlobal.h" - -#include <QObject> - -class QXMPP_EXPORT QXmppFileTransfer : public QObject -{ - Q_OBJECT - /// Progress of the file transfer between 0.0 and 1.0. - Q_PROPERTY(float progress READ progress NOTIFY progressChanged) - -public: - /// Returns the current progress between 0.0 and 1.0. - virtual float progress() const = 0; - virtual void cancel() = 0; - virtual bool isFinished() const = 0; - virtual quint64 bytesTransferred() const = 0; - virtual quint64 bytesTotal() const = 0; - - // TODO consider adding speed getter - - Q_SIGNAL void progressChanged(); -}; - -#endif // QXMPPFILETRANSFER_H |
