Marble
6 #ifndef MARBLE_DECLARATIVE_OFFLINEDATAMODEL_H
7 #define MARBLE_DECLARATIVE_OFFLINEDATAMODEL_H
9 #include "NewstuffModel.h"
11 #include <QSortFilterProxyModel>
17 Q_PROPERTY(
int count READ count NOTIFY countChanged )
19 Q_FLAGS(VehicleType VehicleTypes)
27 Any = Motorcar | Bicycle | Pedestrian
30 Q_DECLARE_FLAGS(VehicleTypes, VehicleType)
32 explicit OfflineDataModel(
QObject* parent =
nullptr );
42 void setVehicleTypeFilter( VehicleTypes filter );
44 void install(
int index );
46 void uninstall(
int index );
53 void installationProgressed(
int newstuffindex, qreal progress );
55 void installationFinished(
int newstuffindex );
57 void installationFailed(
int newstuffindex,
const QString &error );
59 void uninstallationFinished(
int newstuffindex );
65 void handleInstallationProgress(
int index, qreal progress );
67 void handleInstallationFinished(
int index );
69 void handleInstallationFailed(
int index,
const QString &error );
71 void handleUninstallationFinished(
int index );
74 int fromSource(
int idx )
const;
76 int toSource(
int idx )
const;
78 Marble::NewstuffModel m_newstuffModel;
80 VehicleTypes m_vehicleTypeFilter;
virtual QHash< int, QByteArray > roleNames() const const
virtual QVariant data(const QModelIndex &index, int role) const const override
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:09:07 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.