summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqltable.h
Unidiff
Diffstat (limited to 'libopie2/opiedb/osqltable.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqltable.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqltable.h b/libopie2/opiedb/osqltable.h
index 87f7e74..86c30dd 100644
--- a/libopie2/opiedb/osqltable.h
+++ b/libopie2/opiedb/osqltable.h
@@ -1,31 +1,33 @@
1#ifndef OSQL_TABLE_H 1#ifndef OSQL_TABLE_H
2#define OSQL_TABLE_H 2#define OSQL_TABLE_H
3 3
4#include <qstring.h> 4#include <qstring.h>
5#include <qvaluelist.h> 5#include <qvaluelist.h>
6#include <qvariant.h> 6#include <qvariant.h>
7 7
8namespace Opie {
9namespace DB {
8/** 10/**
9 * OSQLTableItem saves one column of a complete 11 * OSQLTableItem saves one column of a complete
10 * table 12 * table
11 */ 13 */
12class OSQLTableItem { 14class OSQLTableItem {
13public: 15public:
14 typedef QValueList<OSQLTableItem> ValueList; 16 typedef QValueList<OSQLTableItem> ValueList;
15 /** 17 /**
16 * Type kinds ( to be extended ) 18 * Type kinds ( to be extended )
17 */ 19 */
18 enum Type { Undefined=-1, Integer=0, BigInteger =1, 20 enum Type { Undefined=-1, Integer=0, BigInteger =1,
19 Float = 2, VarChar = 4 }; 21 Float = 2, VarChar = 4 };
20 /** 22 /**
21 * A constructor 23 * A constructor
22 * @param type the Type of the Column 24 * @param type the Type of the Column
23 * @param fieldName the Name of the Column 25 * @param fieldName the Name of the Column
24 * @param var a Variant 26 * @param var a Variant
25 */ 27 */
26 OSQLTableItem(); 28 OSQLTableItem();
27 OSQLTableItem( enum Type type, 29 OSQLTableItem( enum Type type,
28 const QString& fieldName, 30 const QString& fieldName,
29 const QVariant& var= QVariant() ); 31 const QVariant& var= QVariant() );
30 32
31 /** 33 /**
@@ -69,27 +71,32 @@ public:
69 * @param tableName the Name of the Table 71 * @param tableName the Name of the Table
70 */ 72 */
71 OSQLTable(const QString& tableName); 73 OSQLTable(const QString& tableName);
72 74
73 /** 75 /**
74 * d'tor 76 * d'tor
75 */ 77 */
76 ~OSQLTable(); 78 ~OSQLTable();
77 79
78 /** 80 /**
79 * setColumns sets the Columns of the Table 81 * setColumns sets the Columns of the Table
80 */ 82 */
81 void setColumns( const OSQLTableItem::ValueList& ); 83 void setColumns( const OSQLTableItem::ValueList& );
82 84
83 /** 85 /**
84 * returns all columns of the table 86 * returns all columns of the table
85 */ 87 */
86 OSQLTableItem::ValueList columns() const; 88 OSQLTableItem::ValueList columns() const;
87 89
88 QString tableName()const; 90 QString tableName()const;
89 91
90private: 92private:
91 QString m_table; 93 QString m_table;
92 OSQLTableItem::ValueList m_list; 94 OSQLTableItem::ValueList m_list;
95 class Private;
96 Private *d;
93}; 97};
94 98
99}
100}
101
95#endif 102#endif