2018-05-23 06:11:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CheckableItem.h"
|
|
|
|
|
|
|
|
#include <QJsonObject>
|
2018-05-23 15:47:04 +00:00
|
|
|
#include <vector>
|
2018-05-23 06:11:58 +00:00
|
|
|
|
2018-05-23 09:08:50 +00:00
|
|
|
class CheckableItems : public std::vector<CheckableItem>
|
2018-05-23 06:11:58 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-05-23 15:47:04 +00:00
|
|
|
CheckableItems(std::initializer_list<std::string> itemNames);
|
2018-05-23 06:11:58 +00:00
|
|
|
|
2018-05-23 15:47:04 +00:00
|
|
|
void write(QJsonArray &json) const;
|
|
|
|
void read(const QJsonArray &json);
|
2018-05-23 06:11:58 +00:00
|
|
|
};
|