blob: dab58c301fd74964536ac72dfb6991fd2d85cb74 [file] [log] [blame]
Yingdi Yub2e747d2013-11-05 23:06:43 -08001/* -*- 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
16class EndorseSqlTableModel : public QSqlTableModel
17{
18public:
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