diff options
Diffstat (limited to 'column.h')
-rw-r--r-- | column.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -24,8 +24,19 @@ class DatabaseTable; class Column { public: + + enum Property { + NameProperty, + DataTypeProperty, + NotesProperty, + PrimaryKeyProperty, + RequiredProperty + }; + Column(DatabaseTable *table); + DatabaseTable *table() const { return m_table; } + QString name() const { return m_name; } void setName(const QString &name); @@ -41,6 +52,9 @@ public: bool isRequired() const { return m_required; } void setRequired(bool required); + QVariant property(Property property) const; + void setProperty(Property property, const QVariant &value); + private: DatabaseTable *m_table; QString m_name; |