16#ifndef QGSLAYERMETADATARESULTSMODEL_H
17#define QGSLAYERMETADATARESULTSMODEL_H
19#include <QAbstractTableModel>
36class QgsMetadataResultsFetcher:
public QObject
46 void fetchMetadata( );
71class GUI_EXPORT QgsLayerMetadataResultsModel :
public QAbstractTableModel
83 ~QgsLayerMetadataResultsModel();
88 int rowCount(
const QModelIndex &parent )
const override;
89 int columnCount(
const QModelIndex &parent )
const override;
90 QVariant data(
const QModelIndex &index,
int role )
const override;
91 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
105 Metadata = Qt::ItemDataRole::UserRole
142 void progressChanged(
int progress );
146 std::unique_ptr<QgsFeedback> mFeedback;
149 std::vector<std::unique_ptr<QgsMetadataResultsFetcher>> mWorkers;
150 std::vector<std::unique_ptr<QThread>> mWorkerThreads;
Base class for feedback objects to be used for cancellation of something running in a worker thread.