swift
matchingstatisticsmodel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 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_MATCHINGSTATISTICSMODEL_H
7 #define SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
8 
10 #include "gui/swiftguiexport.h"
12 
13 class QObject;
14 
15 namespace swift::gui::models
16 {
19  public CListModelBase<swift::misc::simulation::CMatchingStatistics, true>
20  {
21  Q_OBJECT
22 
23  public:
26  {
27  NoSet,
28  ForSingleSession,
29  ForMultiSessions
30  };
31 
33  explicit CMatchingStatisticsModel(MatchingStatisticsMode mode, QObject *parent = nullptr);
34 
37 
39  void setMode(MatchingStatisticsMode mode);
40 
41  private:
42  MatchingStatisticsMode m_mode = NoSet;
43  };
44 } // namespace swift::gui::models
45 #endif // SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
Models to be used with views, mainly QTableView.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.