GCompris-qt
DownloadManager.h
Q_INVOKABLE void abortDownloads()
Abort all currently running downloads.
Definition: DownloadManager.cpp:94
void downloadStarted(const QString &resource)
Emitted when a download has started.
void resourceRegistered(const QString &resource)
Emitted when a resource has been registered.
Local files are up-to-date, no download was needed.
Definition: DownloadManager.h:214
A singleton class responsible for downloading, updating and maintaining remote resources.
Definition: DownloadManager.h:81
Q_INVOKABLE bool updateResource(const QString &path)
Updates a resource path from the upstream server unless prohibited by the settings and registers it i...
Definition: DownloadManager.cpp:150
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
Emitted during a running download.
Q_INVOKABLE bool downloadResource(const QString &path)
Download a resource specified by the relative resource path and register it if possible.
Definition: DownloadManager.cpp:167
static void init()
Registers DownloadManager singleton in the QML engine.
Definition: DownloadManager.cpp:82
Q_INVOKABLE bool downloadIsRunning() const
Whether any download is currently running.
Definition: DownloadManager.cpp:89
Q_INVOKABLE bool isDataRegistered(const QString &data) const
Whether the passed relative data is registered.
Definition: DownloadManager.cpp:476
Q_INVOKABLE QString getVoicesResourceForLocale(const QString &locale) const
Generates a relative voices resources file-path for a given locale.
Definition: DownloadManager.cpp:120
void voicesRegistered()
Emitted when voices resources for current locale have been registered.
Q_INVOKABLE bool areVoicesRegistered() const
Whether voices for the currently active locale are registered.
Definition: DownloadManager.cpp:483
Q_INVOKABLE bool haveLocalResource(const QString &path) const
Checks whether the given relative resource path exists locally.
Definition: DownloadManager.cpp:145
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:47 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:47 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.