From 2fe061ae4a5485201ecc79b163a2a3771d8f5be4 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 2 Oct 2022 20:36:11 +0200 Subject: FileUpload/Download: Avoid unnecessary virtual functions --- src/client/QXmppFileTransfer.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/client/QXmppFileTransfer.h (limited to 'src/client/QXmppFileTransfer.h') 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 -// -// SPDX-License-Identifier: LGPL-2.1-or-later - -#ifndef QXMPPFILETRANSFER_H -#define QXMPPFILETRANSFER_H - -#include "QXmppGlobal.h" - -#include - -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 -- cgit v1.2.3