mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
|
|
#ifndef SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
|
|
#define SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
|
|
|
|
#include "gui/models/listmodelbase.h"
|
|
#include "gui/swiftguiexport.h"
|
|
#include "misc/simulation/matchingstatistics.h"
|
|
|
|
class QObject;
|
|
|
|
namespace swift::gui::models
|
|
{
|
|
//! Matching statistics entry
|
|
class SWIFT_GUI_EXPORT CMatchingStatisticsModel :
|
|
public CListModelBase<swift::misc::simulation::CMatchingStatistics, true>
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! How to display
|
|
enum MatchingStatisticsMode
|
|
{
|
|
NoSet,
|
|
ForSingleSession,
|
|
ForMultiSessions
|
|
};
|
|
|
|
//! Constructor
|
|
explicit CMatchingStatisticsModel(MatchingStatisticsMode mode, QObject *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CMatchingStatisticsModel() {}
|
|
|
|
//! Set mode
|
|
void setMode(MatchingStatisticsMode mode);
|
|
|
|
private:
|
|
MatchingStatisticsMode m_mode = NoSet;
|
|
};
|
|
} // namespace swift::gui::models
|
|
#endif // SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
|