1 #ifndef COLUMN_H 2 #define COLUMN_H 3 4 #include "table.h" 5 #include "coreSQLiteStudio_global.h" 6 #include <QString> 7 8 struct API_EXPORT Column : public Table 9 { 10 public: 11 Column(); 12 Column(const QString& database, const QString& table, const QString& column); 13 Column(const Column& other); 14 15 int operator ==(const Column& other) const; 16 17 QString getColumn() const; 18 void setColumn(const QString& value); 19 20 QString getDeclaredType() const; 21 void setDeclaredType(const QString& value); 22 23 private: 24 QString column; 25 QString declaredType; 26 }; 27 28 struct API_EXPORT AliasedColumn : public Column 29 { 30 public: 31 AliasedColumn(); 32 AliasedColumn(const QString& database, const QString& table, const QString& column, const QString& alias); 33 AliasedColumn(const AliasedColumn& other); 34 35 int operator ==(const AliasedColumn& other) const; 36 37 QString getAlias() const; 38 void setAlias(const QString& value); 39 40 private: 41 QString alias; 42 }; 43 44 int API_EXPORT qHash(Column column); 45 int API_EXPORT qHash(AliasedColumn column); 46 47 #endif // COLUMN_H 48