File: ddlhistorymodel.h

package info (click to toggle)
sqlitestudio 3.4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 61,252 kB
  • sloc: ansic: 403,094; cpp: 122,803; yacc: 2,619; java: 992; tcl: 495; sh: 440; xml: 426; makefile: 19
file content (31 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef DDLHISTORYMODEL_H
#define DDLHISTORYMODEL_H

#include "coreSQLiteStudio_global.h"
#include <QSortFilterProxyModel>

class QueryModel;
class Db;

class API_EXPORT DdlHistoryModel : public QSortFilterProxyModel
{
        Q_OBJECT

    public:
        DdlHistoryModel(Db* db, QObject *parent = nullptr);

        QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
        void refresh();
        QString getDbNameForFilter() const;
        void setDbNameForFilter(const QString& value);
        QStringList getDbNames() const;
        QVariant headerData(int section, Qt::Orientation orientation, int role) const;

    private:
        QueryModel* internalModel = nullptr;

    signals:
        void refreshed();
};

#endif // DDLHISTORYMODEL_H