Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Yingdi Yu |
| 5 | * |
| 6 | * BSD license, See the LICENSE file for more information |
| 7 | * |
| 8 | * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 9 | */ |
| 10 | |
| 11 | #ifndef LINKNDN_ENDORSE_SQL_TABLE_MODEL_H |
| 12 | #define LINKNDN_ENDORSE_SQL_TABLE_MODEL_H |
| 13 | |
| 14 | #include <QtSql/QSqlTableModel> |
| 15 | |
| 16 | class EndorseSqlTableModel : public QSqlTableModel |
| 17 | { |
| 18 | public: |
| 19 | EndorseSqlTableModel(QObject * parent = 0, QSqlDatabase db = QSqlDatabase()); |
| 20 | |
| 21 | virtual |
| 22 | ~EndorseSqlTableModel(); |
| 23 | |
| 24 | Qt::ItemFlags |
| 25 | flags ( const QModelIndex & index ); |
| 26 | |
| 27 | bool |
| 28 | setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole ); |
| 29 | |
| 30 | QVariant |
| 31 | data ( const QModelIndex & index, int role = Qt::DisplayRole ) const; |
| 32 | }; |
| 33 | |
| 34 | #endif |