X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftransfermodel.h;h=bf187c31f01b48d692296f3b46225f20138c347f;hp=1f9821ac9df40af42994fbfa4bdf7f2df543f3f7;hb=cc6e7c08709c4e761e2fd9c2e322751015497003;hpb=7b8a28df7c0dfab0d5691e75b1932be9f4209c17 diff --git a/src/client/transfermodel.h b/src/client/transfermodel.h index 1f9821ac..bf187c31 100644 --- a/src/client/transfermodel.h +++ b/src/client/transfermodel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 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 * @@ -22,8 +22,8 @@ #include #include -#include #include +#include #include "transfer.h" @@ -40,9 +40,9 @@ public: using QAbstractTableModel::QAbstractTableModel; // see base class docs - int rowCount(const QModelIndex &index = {}) const override; - int columnCount(const QModelIndex &index = {}) const override; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + int rowCount(const QModelIndex& index = {}) const override; + int columnCount(const QModelIndex& index = {}) const override; + QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; /** @@ -51,7 +51,7 @@ public: * @param[in] transferId Transfer ID * @returns A pointer to the transfer with the given ID, or nullptr for an unknown ID */ - Transfer *transfer(const QUuid &transferId) const; + Transfer* transfer(const QUuid& transferId) const; /** * Sets the TransferManager associated with this model. @@ -61,7 +61,7 @@ public: * * @param[in] manager Pointer to the TransferManager instance, or nullptr for clearing the model */ - void setManager(const TransferManager *manager); + void setManager(const TransferManager* manager); private slots: /** @@ -69,14 +69,14 @@ private slots: * * @param[in] transferId The transfer's ID */ - void onTransferAdded(const QUuid &transferId); + void onTransferAdded(const QUuid& transferId); /** * Slot to be called when a transfer is removed. * * @param[in] transferId The transfer's ID */ - void onTransferRemoved(const QUuid &transferId); + void onTransferRemoved(const QUuid& transferId); /** * Slot to be called when a transfer's data changes. @@ -84,6 +84,6 @@ private slots: void onTransferDataChanged(); private: - const TransferManager *_manager{nullptr}; ///< Pointer to the active TransferManager instance, if any - QVector _transferIds; ///< List of transfer IDs + const TransferManager* _manager{nullptr}; ///< Pointer to the active TransferManager instance, if any + QVector _transferIds; ///< List of transfer IDs };