summaryrefslogtreecommitdiff
path: root/column.h
diff options
context:
space:
mode:
Diffstat (limited to 'column.h')
-rw-r--r--column.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/column.h b/column.h
index 1a77bec..3b7a3fc 100644
--- a/column.h
+++ b/column.h
@@ -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;