aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppFileTransfer.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-10-02 20:36:11 +0200
committerLinus Jahn <lnj@kaidan.im>2022-10-02 23:01:13 +0200
commit2fe061ae4a5485201ecc79b163a2a3771d8f5be4 (patch)
treee81733ee9eec3cb347780b45522f4e2a4ee44aab /src/client/QXmppFileTransfer.h
parentada1907bb5f22e0820e1d1d8004cc23f2246e74b (diff)
downloadqxmpp-2fe061ae4a5485201ecc79b163a2a3771d8f5be4.tar.gz
FileUpload/Download: Avoid unnecessary virtual functions
Diffstat (limited to 'src/client/QXmppFileTransfer.h')
-rw-r--r--src/client/QXmppFileTransfer.h31
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