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)
 
   37    QHash<int, QByteArray> roleNames() 
const override;
 
   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;
 
   82    QHash<int, QByteArray> m_roleNames;
 
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
 
virtual QModelIndex parent(const QModelIndex &index) const const=0
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 12:01:31 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.