1 #ifndef OSMSCOUT_CLIENT_QT_MAPDOWNLOADSMODEL_H 2 #define OSMSCOUT_CLIENT_QT_MAPDOWNLOADSMODEL_H 24 #include <QStringList> 46 void mapDownloadFails(QString message);
49 void onDownloadJobsChanged();
50 void onDownloadProgress();
61 MapNameRole = Qt::UserRole,
62 TargetDirectoryRole = Qt::UserRole+1,
63 ProgressRole = Qt::UserRole+2,
64 ProgressDescriptionRole = Qt::UserRole+3,
65 ErrorStringRole = Qt::UserRole+4,
69 Q_INVOKABLE
virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
70 Q_INVOKABLE
virtual QVariant data(
const QModelIndex &index,
int role)
const;
71 virtual QHash<int, QByteArray> roleNames()
const;
72 Q_INVOKABLE
virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
74 Q_INVOKABLE
void cancel(
int row);
76 Q_INVOKABLE QString suggestedDirectory(QObject *map, QString rootDirectory =
"");
77 Q_INVOKABLE
void downloadMap(QObject *map, QString dir);
78 Q_INVOKABLE QStringList getLookupDirectories();
79 Q_INVOKABLE
double getFreeSpace(QString dir);
Roles
Definition: MapDownloadsModel.h:60
#define OSMSCOUT_CLIENT_QT_API
Definition: ClientQtImportExport.h:45
Definition: MapDownloadsModel.h:42
std::shared_ptr< MapManager > MapManagerRef
Definition: MapManager.h:232
virtual ~MapDownloadsModel()
Definition: MapDownloadsModel.h:58