00001 #ifndef __RECORDTABLEMODEL_H__
00002 #define __RECORDTABLEMODEL_H__
00003
00004 #include <QAbstractListModel>
00005 #include <QModelIndex>
00006 #include <QVariant>
00007 #include <QObject>
00008 #include <QtXml>
00009
00010 #include "recordtabledata.h"
00011
00012
00013 class recordtablemodel : public QAbstractListModel
00014 {
00015 Q_OBJECT
00016
00017 public:
00018 recordtablemodel(QObject *pobj=0);
00019 ~recordtablemodel();
00020
00021
00022 QVariant data(const QModelIndex &index, int nRole) const;
00023
00024
00025 bool setData(const QModelIndex &index, const QVariant &value, int nRole);
00026
00027
00028 int rowCount(const QModelIndex &parent=QModelIndex()) const;
00029
00030
00031 QAbstractListModel *getmodel(void);
00032
00033
00034 void set_tabledata(recordtabledata *rtdata);
00035
00036
00037 recordtabledata *get_tabledata(void);
00038
00039
00040 void update(void);
00041
00042
00043 private:
00044
00045
00046 recordtabledata *table;
00047
00048 };
00049
00050 #endif // __RECORDTABLEMODEL_H__