24 #include <QtCore/qglobal.h>
25 #include <QtCore/QVariant>
26 #include <QtCore/QMetaMethod>
27 #include <QtSql/QSqlQuery>
29 #include "tablesetbase_p.h"
39 class NUT_EXPORT
TableSet :
public TableSetBase
46 void append(QList<T*> t);
48 void remove(QList<T*> t);
50 inline T type()
const {}
54 const T &operator[](
int i)
const;
61 _childClassName = T::staticMetaObject.className();
65 Q_OUTOFLINE_TEMPLATE TableSet<T>::TableSet(
Table *parent) : TableSetBase(parent)
67 _childClassName = T::staticMetaObject.className();
81 return _tables.count();
87 return (T*)_tablesList.at(i);
93 return _tablesList[i];
100 _tablesList.append(t);
102 t->setTableSet(
this);
103 if(t->status() != Table::FeatchedFromDB)
104 t->setStatus(Table::Added);
118 t->setStatus(Table::Deleted);