swift
clientlistmodel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_MODELS_CLIENTLISTMODEL_H
7 #define SWIFT_GUI_MODELS_CLIENTLISTMODEL_H
8 
9 #include <QVariant>
10 
12 #include "gui/swiftguiexport.h"
14 
15 class QModelIndex;
16 class QObject;
17 
18 namespace swift::gui::models
19 {
21  class SWIFT_GUI_EXPORT CClientListModel : public CListModelBase<swift::misc::network::CClientList>
22  {
23  Q_OBJECT
24 
25  public:
27  explicit CClientListModel(QObject *parent = nullptr);
28 
30  virtual ~CClientListModel() {}
31 
33  virtual QVariant data(const QModelIndex &index, int role) const override;
34  };
35 } // namespace swift::gui::models
36 #endif // SWIFT_GUI_MODELS_CLIENTLISTMODEL_H
virtual ~CClientListModel()
Destructor.
Models to be used with views, mainly QTableView.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.