1 #ifndef OSMSCOUT_CLIENT_QT_INSTALLEDMAPSMODEL_H 2 #define OSMSCOUT_CLIENT_QT_INSTALLEDMAPSMODEL_H 26 #include <QAbstractListModel> 40 void databaseListChanged();
43 void onDatabaseListChanged();
51 NameRole = Qt::UserRole,
52 PathRole = Qt::UserRole + 1,
53 DirectoryRole = Qt::UserRole + 2,
54 TimeRole = Qt::UserRole + 3,
58 Q_INVOKABLE
virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
59 Q_INVOKABLE
virtual QVariant data(
const QModelIndex &index,
int role)
const;
60 virtual QHash<int, QByteArray> roleNames()
const;
61 Q_INVOKABLE
virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
68 Q_INVOKABLE
bool deleteMap(
int row);
69 Q_INVOKABLE
virtual bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
78 Q_INVOKABLE QVariant timeOfMap(
const QStringList& path);
81 QList<MapDirectory> dirs;
87 #endif //OSMSCOUT_CLIENT_QT_INSTALLEDMAPSMODEL_H #define OSMSCOUT_CLIENT_QT_API
Definition: ClientQtImportExport.h:45
std::shared_ptr< MapManager > MapManagerRef
Definition: MapManager.h:232
Definition: InstalledMapsModel.h:36
Roles
Definition: InstalledMapsModel.h:50