EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
extra_rule_data.h
1#pragma once
2
3// Application headers
4namespace ehm_dal::database {
5class DatabaseVersion;
6}
7
8// Qt headers
9class QDataStream;
10class QVariant;
11#include <QtGlobal>
12#include <memory>
13
14namespace ehm_dal::ehm_extra_rules {
15
16// --- Extra rule container --- //
18{
19public:
22
23 // File i/o
24 bool read(QDataStream &in, ehm_dal::database::DatabaseVersion &version);
25 bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version);
26
27 // Get data
28 QVariant data(const qint32 role) const;
29 qint32 rowCount() const;
30
31private:
32 struct Data;
33 std::unique_ptr<Data> data_;
34};
35} // namespace ehm_dal::ehm_extra_rules
36
The DatabaseVersion class represents the database version number.
Definition: database_version.h:12
Definition: extra_rule_data.h:18