comparison ui/certificatetablemodel.h @ 334:36be67070dcb

Added table model for certificates.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 09 Apr 2014 12:43:40 +0200
parents
children fba80767fd7a
comparison
equal deleted inserted replaced
333:de94c4ec22b1 334:36be67070dcb
1 #ifndef CERTIFICATETABLEMODEL_H
2 #define CERTIFICATETABLEMODEL_H
3
4 /**
5 * @file certificatetablemodel.h
6 * @brief Table model for certificates.
7 */
8
9 #include <QAbstractTableModel>
10 #include <QString>
11 #include "certificate.h"
12
13 class CertificateTabelModel : public QAbstractTableModel
14 {
15 Q_OBJECT
16
17 public:
18 CertificateTabelModel(QObject *parent = 0);
19
20 void addCertificate(Certificate *certificate);
21 int rowCount(const QModelIndex &parent = QModelIndex()) const;
22 int columnCount(const QModelIndex &parent = QModelIndex()) const;
23
24 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
25 QVariant headerData(int section, Qt::Orientation orientation,
26 int role = Qt::DisplayRole) const;
27
28 private:
29 QList<Certificate> *certificates;
30 QList<QString> *header;
31 };
32
33 #endif

http://wald.intevation.org/projects/trustbridge/