X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclienttransfer.h;h=7a18fb2b7cac2f698ac66907554f238721410dc1;hb=d46e1e86c9869996285ac3f88970cf0e9e23e128;hp=4f54ef08afc6c3710799dea1d97a9306692103fd;hpb=a9f422812ea5a8d43297790283ba2fdfe65a9ead;p=quassel.git diff --git a/src/client/clienttransfer.h b/src/client/clienttransfer.h index 4f54ef08..7a18fb2b 100644 --- a/src/client/clienttransfer.h +++ b/src/client/clienttransfer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef CLIENTTRANSFER_H -#define CLIENTTRANSFER_H +#pragma once #include @@ -30,20 +29,21 @@ class QFile; class ClientTransfer : public Transfer { Q_OBJECT - SYNCABLE_OBJECT public: - ClientTransfer(const QUuid &uuid, QObject *parent = 0); + ClientTransfer(const QUuid& uuid, QObject* parent = nullptr); QString savePath() const; + quint64 transferred() const override; + public slots: // called on the client side - void accept(const QString &savePath) const override; + void accept(const QString& savePath) const override; void reject() const override; private slots: - void dataReceived(PeerPtr peer, const QByteArray &data) override; + void dataReceived(PeerPtr peer, const QByteArray& data) override; void onStatusChanged(Transfer::Status status); private: @@ -51,7 +51,5 @@ private: mutable QString _savePath; - QFile *_file; + QFile* _file; }; - -#endif