mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
30 lines
696 B
C++
30 lines
696 B
C++
#ifndef BLACKGUI_CLIENTLISTMODEL_H
|
|
#define BLACKGUI_CLIENTLISTMODEL_H
|
|
|
|
#include <QAbstractItemModel>
|
|
#include "blackmisc/nwclientlist.h"
|
|
#include "blackgui/listmodelbase.h"
|
|
|
|
namespace BlackGui
|
|
{
|
|
/*!
|
|
* \brief Server list model
|
|
*/
|
|
class CClientListModel : public CListModelBase<BlackMisc::Network::CClient, BlackMisc::Network::CClientList>
|
|
{
|
|
|
|
public:
|
|
|
|
//! \brief Constructor
|
|
explicit CClientListModel(QObject *parent = nullptr);
|
|
|
|
//! \brief Destructor
|
|
virtual ~CClientListModel() {}
|
|
|
|
//! \copydoc CListModelBase::data
|
|
QVariant data(const QModelIndex &modelIndex, int role = Qt::DisplayRole) const;
|
|
|
|
};
|
|
}
|
|
#endif // guard
|