16#ifndef QGSLAYERMETADATARESULTSMODEL_H
17#define QGSLAYERMETADATARESULTSMODEL_H
19#include <QAbstractTableModel>
37class QgsMetadataResultsFetcher:
public QObject
47 void fetchMetadata( );
72class GUI_EXPORT QgsLayerMetadataResultsModel :
public QAbstractTableModel
84 ~QgsLayerMetadataResultsModel();
89 int rowCount(
const QModelIndex &parent )
const override;
90 int columnCount(
const QModelIndex &parent )
const override;
91 QVariant data(
const QModelIndex &index,
int role )
const override;
92 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
110 Metadata = Qt::ItemDataRole::UserRole,
149 void progressChanged(
int progress );
153 std::unique_ptr<QgsFeedback> mFeedback;
156 std::vector<std::unique_ptr<QgsMetadataResultsFetcher>> mWorkers;
157 std::vector<std::unique_ptr<QThread>> mWorkerThreads;
Base class for feedback objects to be used for cancellation of something running in a worker thread.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)