4#include "include/schema/abstract_uid_table_item.h"
10namespace ehm_dal::schema {
28 const QVariant &value,
30 std::vector<qint32> &modified_columns,
39 QString
text()
const override;
49 std::unique_ptr<Data> data_;
52 QVariant internalData(
const qint32 column,
const qint32 role)
const override;
55 bool setInternalData(
const qint32 column,
56 const QVariant &value,
58 std::vector<qint32> &modified_columns)
override;
The ColumnData class represents a container of ehm_dal::column_data::Column and attributes relating t...
Definition: column_data.h:18
The DatabaseVersion class represents the database version number.
Definition: database_version.h:12
The AbstractUidTableItem class represents a row in a Table with id and uid fields.
Definition: abstract_uid_table_item.h:11
Definition: staff_award.h:14
void addChildItem(std::shared_ptr< AbstractTableItem > item, const ehm_dal::tables::TableIndex child_table) override
Adds the child item item from the child_table to the present tree table. This represents a tree relat...
qint32 childRowCount(const ehm_dal::tables::TableIndex child_table) const override
Returns the number of related child items in respect of child_table.
bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version) override
Writes a table row to the QDataStream.
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 ...
QVariant childData(const QModelIndex &index, qint32 role, column_data::ColumnData *column_data, const ehm_dal::tables::TableIndex child_table) const override
Returns child data stored under the given role for the selected index.
bool init() override
Initialises the table item members. This only needs to be called once per item.
bool setChildData(const QModelIndex &index, const QVariant &value, const qint32 role, std::vector< qint32 > &modified_columns, ehm_dal::column_data::ColumnData *column_data, const ehm_dal::tables::TableIndex child_table) override
Sets the role data for the child item at index to value.
TableIndex
The TableIndex enum represents the id number of each table within the database.
Definition: table_index.h:14