5#include "include/schema/abstract_table_item.h"
11namespace ehm_dal::schema {
25 QString
text()
const override;
35 std::unique_ptr<Data> data_;
38 QVariant internalData(
const qint32 column,
const qint32 role)
const override;
41 bool setInternalData(
const qint32 column,
42 const QVariant &value,
44 std::vector<qint32> &modified_columns)
override;
The DatabaseVersion class represents the database version number.
Definition: database_version.h:12
The AbstractTableItem class represents a row in a Table with an id field.
Definition: abstract_table_item.h:31
Definition: staff_preferences.h:15
bool init() override
Initialises the table item members. This only needs to be called once per item.
bool read(QDataStream &in, ehm_dal::database::DatabaseVersion &version) override
Reads a table row from the QDataStream.
QString text() const override
Returns the row's display text. This provides a convenient way to obtain a simple description of the ...
bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version) override
Writes a table row to the QDataStream.