Marble
6 #ifndef MARBLE_NEWSTUFFMODEL_H
7 #define MARBLE_NEWSTUFFMODEL_H
9 #include "marble_export.h"
11 #include <QAbstractListModel>
18 class NewstuffModelPrivate;
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;
76 void setProvider(
const QString &downloadUrl );
80 void setTargetDirectory(
const QString &targetDirectory );
82 QString targetDirectory()
const;
84 void setRegistryFile(
const QString ®istryFile, IdTag idTag = PayloadTag );
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* ) )
132 #endif // MARBLE_NEWSTUFFMODEL_H
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:20 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.