kDB: Knowledge DataBase
Loading...
Searching...
No Matches
knowDBC::Quick::QueryResultModel Class Reference
Inheritance diagram for knowDBC::Quick::QueryResultModel:
Collaboration diagram for knowDBC::Quick::QueryResultModel:

Classes

struct  Private
 

Public Types

enum class  Type { CSV , JSON , SRX }
 

Signals

void columnNamesChanged ()
 

Public Member Functions

 QueryResultModel (QObject *parent=nullptr)
 
 QueryResultModel (const knowDBC::Result &_result, QObject *parent=nullptr)
 
QStringList columnNames () const
 
Q_INVOKABLE int roleIndex (const QString &_role) const
 
Q_INVOKABLE bool saveTo (const QUrl &_filename, Type _type) const
 
Q_INVOKABLE QByteArray serialise (const QString &_format)
 
knowDBC::Result result () const
 
void setResult (const knowDBC::Result &_t)
 

Protected Member Functions

int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QHash< int, QByteArray > roleNames () const override
 

Properties

QStringList columnNames
 

The documentation for this class was generated from the following files: