author | mickeyl <mickeyl> | 2003-08-10 15:42:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-08-10 15:42:26 (UTC) |
commit | 90dbd3e9e7139c1280e71f9c77ed4362b8d0f367 (patch) (side-by-side diff) | |
tree | 22f0947337ea9b21a1d8f56d04ce3292c9d6f19e /libsql/osqltable.h | |
parent | 616e919ff6aea6a30e18edb37128c229e806beae (diff) | |
download | opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.zip opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.tar.gz opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.tar.bz2 |
libsql is now a part of libopie2
-rw-r--r-- | libsql/osqltable.h | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/libsql/osqltable.h b/libsql/osqltable.h deleted file mode 100644 index 87f7e74..0000000 --- a/libsql/osqltable.h +++ b/dev/null @@ -1,95 +0,0 @@ -#ifndef OSQL_TABLE_H -#define OSQL_TABLE_H - -#include <qstring.h> -#include <qvaluelist.h> -#include <qvariant.h> - -/** - * OSQLTableItem saves one column of a complete - * table - */ -class OSQLTableItem { -public: - typedef QValueList<OSQLTableItem> ValueList; - /** - * Type kinds ( to be extended ) - */ - enum Type { Undefined=-1, Integer=0, BigInteger =1, - Float = 2, VarChar = 4 }; - /** - * A constructor - * @param type the Type of the Column - * @param fieldName the Name of the Column - * @param var a Variant - */ - OSQLTableItem(); - OSQLTableItem( enum Type type, - const QString& fieldName, - const QVariant& var= QVariant() ); - - /** - * copy c'tor - */ - OSQLTableItem( const OSQLTableItem& ); - - /** - * d'tor - */ - ~OSQLTableItem(); - - OSQLTableItem& operator=( const OSQLTableItem& ); - - /** - * the fieldName - */ - QString fieldName() const; - - /** - * the field Type - */ - Type type() const; - QVariant more() const; -private: - class OSQLTableItemPrivate; - OSQLTableItemPrivate* d; - Type m_type; - QString m_field; - QVariant m_var; -}; - -/** - * A OSQLTable consists of OSQLTableItems - */ -class OSQLTable { -public: - typedef QValueList<OSQLTable> ValueList; - - /** - * @param tableName the Name of the Table - */ - OSQLTable(const QString& tableName); - - /** - * d'tor - */ - ~OSQLTable(); - - /** - * setColumns sets the Columns of the Table - */ - void setColumns( const OSQLTableItem::ValueList& ); - - /** - * returns all columns of the table - */ - OSQLTableItem::ValueList columns() const; - - QString tableName()const; - -private: - QString m_table; - OSQLTableItem::ValueList m_list; -}; - -#endif |