/***************************************************************************
- * Copyright (C) 2005-2018 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 *
#include <QAbstractTableModel>
#include <QString>
-#include <QVector>
#include <QUuid>
+#include <QVector>
#include "transfer.h"
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;
/**
* @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.
*
* @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:
/**
*
* @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.
void onTransferDataChanged();
private:
- const TransferManager *_manager{nullptr}; ///< Pointer to the active TransferManager instance, if any
- QVector<QUuid> _transferIds; ///< List of transfer IDs
+ const TransferManager* _manager{nullptr}; ///< Pointer to the active TransferManager instance, if any
+ QVector<QUuid> _transferIds; ///< List of transfer IDs
};