Marble
            
 
    6#ifndef MARBLE_NEWSTUFFMODEL_H 
    7#define MARBLE_NEWSTUFFMODEL_H 
    9#include "marble_export.h" 
   11#include <QAbstractListModel> 
   18class NewstuffModelPrivate;
 
   20class MARBLE_EXPORT NewstuffModel : 
public QAbstractListModel
 
   24    Q_PROPERTY(
int count READ count NOTIFY countChanged)
 
   25    Q_PROPERTY(QString provider READ provider WRITE setProvider NOTIFY providerChanged)
 
   26    Q_PROPERTY(QString targetDirectory READ targetDirectory WRITE setTargetDirectory NOTIFY targetDirectoryChanged)
 
   27    Q_PROPERTY(QString registryFile READ registryFile WRITE setRegistryFile NOTIFY registryFileChanged)
 
   56    explicit NewstuffModel(QObject *parent = 
nullptr);
 
   59    ~NewstuffModel() 
override;
 
   62    int rowCount(
const QModelIndex &parent = QModelIndex()) 
const override;
 
   65    QVariant data(
const QModelIndex &index, 
int role = 
Qt::DisplayRole) 
const override;
 
   68    QHash<int, QByteArray> roleNames() 
const override;
 
   76    void setProvider(
const QString &downloadUrl);
 
   78    QString provider() 
const;
 
   80    void setTargetDirectory(
const QString &targetDirectory);
 
   82    QString targetDirectory() 
const;
 
   84    void setRegistryFile(
const QString ®istryFile, IdTag idTag = PayloadTag);
 
   86    QString registryFile() 
const;
 
   89    void install(
int index);
 
   91    void uninstall(
int index);
 
   98    void providerChanged();
 
  100    void targetDirectoryChanged();
 
  102    void registryFileChanged();
 
  104    void installationProgressed(
int newstuffindex, qreal progress);
 
  106    void installationFinished(
int newstuffindex);
 
  108    void installationFailed(
int newstuffindex, 
const QString &error);
 
  110    void uninstallationFinished(
int newstuffindex);
 
  113    void updateProgress(qint64 bytesReceived, qint64 bytesTotal);
 
  117    void mapInstalled(
int exitStatus);
 
  119    void mapUninstalled();
 
  121    void contentsListed(
int exitStatus);
 
  124    NewstuffModelPrivate *
const d;
 
  125    friend class NewstuffModelPrivate;
 
  127    Q_PRIVATE_SLOT(d, 
void handleProviderData(QNetworkReply *))
 
Binds a QML item to a specific geodetic location in screen coordinates.
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 12:01:34 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.