QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QSqlTableModel.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QSQLTABLEMODEL_H
2 #define QTSCRIPTSHELL_QSQLTABLEMODEL_H
3 
4 #include <qsqltablemodel.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QSqlTableModel : public QSqlTableModel
9 {
10 public:
11  QtScriptShell_QSqlTableModel(QObject* parent = 0, QSqlDatabase db = QSqlDatabase());
13 
14  QModelIndex buddy(const QModelIndex& index) const;
15  bool canFetchMore(const QModelIndex& parent) const;
16  void childEvent(QChildEvent* arg__1);
17  void clear();
18  int columnCount(const QModelIndex& parent) const;
19  void customEvent(QEvent* arg__1);
20  QVariant data(const QModelIndex& idx, int role = Qt::DisplayRole) const;
21  bool deleteRowFromTable(int row);
22  bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
23  bool event(QEvent* arg__1);
24  bool eventFilter(QObject* arg__1, QEvent* arg__2);
25  void fetchMore(const QModelIndex& parent);
26  Qt::ItemFlags flags(const QModelIndex& index) const;
27  QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
28  QModelIndex index(int row, int column, const QModelIndex& parent) const;
29  bool insertColumns(int column, int count, const QModelIndex& parent);
30  bool insertRowIntoTable(const QSqlRecord& values);
31  bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex());
32  QMap<int , QVariant > itemData(const QModelIndex& index) const;
33  QList<QModelIndex > match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const;
34  QMimeData* mimeData(const QList<QModelIndex >& indexes) const;
35  QStringList mimeTypes() const;
36  QString orderByClause() const;
37  void queryChange();
38  bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex());
39  bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex());
40  void revert();
41  void revertRow(int row);
42  int rowCount(const QModelIndex& parent = QModelIndex()) const;
43  bool select();
44  QString selectStatement() const;
45  bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
46  void setEditStrategy(QSqlTableModel::EditStrategy strategy);
47  void setFilter(const QString& filter);
48  bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role);
49  bool setItemData(const QModelIndex& index, const QMap<int , QVariant >& roles);
50  void setSort(int column, Qt::SortOrder order);
51  void setTable(const QString& tableName);
52  void sort(int column, Qt::SortOrder order);
53  QSize span(const QModelIndex& index) const;
54  bool submit();
55  Qt::DropActions supportedDropActions() const;
56  void timerEvent(QTimerEvent* arg__1);
57  bool updateRowInTable(int row, const QSqlRecord& values);
58 
59  QScriptValue __qtscript_self;
60 };
61 
62 #endif // QTSCRIPTSHELL_QSQLTABLEMODEL_H