4#include "include/schema/abstract_id_table_item.h"
10namespace ehm_dal::schema {
24 QString
text()
const override;
36 enum ENUM_WEEKLY_WAGES { MAX_CONTRACT_YEARS = 10 };
39 FOREIGN_RELEASE_CLAUSE,
45 PROFESSIONAL_OFFER_CLAUSE,
51 std::unique_ptr<Data> data_;
54 QVariant internalData(
const qint32 column,
const qint32 role)
const override;
57 bool setInternalData(
const qint32 column,
58 const QVariant &value,
60 std::vector<qint32> &modified_columns)
override;
The DatabaseVersion class represents the database version number.
Definition: database_version.h:12
The AbstractIdTableItem class represents a row in a Table with an id field.
Definition: abstract_id_table_item.h:26
Definition: contract_details.h:13
bool write(QDataStream &out, ehm_dal::database::DatabaseVersion &version) override
Writes a table row to 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 init() override
Initialises the table item members. This only needs to be called once per item.
qint32 parentItemId() const override
Returns the item id of the items parent item. Applies to tree structures only.
bool read(QDataStream &in, ehm_dal::database::DatabaseVersion &version) override
Reads a table row from the QDataStream.