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)
42 void setVehicleTypeFilter(VehicleTypes filter);
44 void install(
int index);
46 void uninstall(
int index);
48 void cancel(
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);
62 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const override;
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;
QObject * parent() const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:50:59 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.