X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclienttransfer.h;h=a274f3b021505f5d64bdcecf757b1776b2d87bfc;hp=a1d062b7cab3e35ef609d7e6dae4b4d05c96c1cc;hb=a95ad2de573027f9bee36db972bcae4195168d0c;hpb=22754c6f9444b0cd004c12984cf6eb183c2f6ae5 diff --git a/src/client/clienttransfer.h b/src/client/clienttransfer.h index a1d062b7..a274f3b0 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-2020 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,10 +29,9 @@ 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; @@ -41,11 +39,11 @@ public: 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: @@ -53,7 +51,5 @@ private: mutable QString _savePath; - QFile *_file; + QFile* _file; }; - -#endif