2018-05-24 18:35:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CheckableItems.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class CheckableTest
|
|
|
|
{
|
|
|
|
private:
|
2019-10-05 14:14:45 +00:00
|
|
|
CheckableItems m_items;
|
|
|
|
QString m_name;
|
2018-05-24 18:35:16 +00:00
|
|
|
|
|
|
|
public:
|
2019-10-05 14:14:45 +00:00
|
|
|
CheckableTest(const char* name, std::initializer_list<std::string> items);
|
2018-05-24 18:35:16 +00:00
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
size_t size() const;
|
|
|
|
const QString& name() const;
|
|
|
|
const CheckableItems& items() const;
|
|
|
|
CheckableItems& items();
|
2019-01-13 17:44:07 +00:00
|
|
|
|
2019-10-05 14:14:45 +00:00
|
|
|
unsigned int getPoints() const;
|
2018-05-24 18:35:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
using CheckableTests = std::vector<CheckableTest>;
|