30 void requestInformation(QUrl url);
32 void installAddon(
const Package& addon);
33 void installLibrary(
const Package& addon);
36 void handleAddonList(
const QJsonObject&);
37 void handleAddon(
const QJsonObject&);
38 void on_message(QNetworkReply* rep);
39 void firstTimeLibraryDownload();
41 void downloadDefaultLibrary();
44 void show_progress() W_SIGNAL(show_progress);
45 void update_progress(
double v) W_SIGNAL(update_progress, v);
46 void reset_progress() W_SIGNAL(reset_progress);
47 void set_info() W_SIGNAL(set_info);
48 void progress_from_bytes(qint64 received, qint64 total)
49 W_SIGNAL(progress_from_bytes, received, total);
50 void information(QString title, QString description)
51 E_SIGNAL(SCORE_PLUGIN_PACKAGEMANAGER_EXPORT, information, title, description);
52 void warning(QString title, QString description)
53 E_SIGNAL(SCORE_PLUGIN_PACKAGEMANAGER_EXPORT, warning, title, description);
56 const Package& addon,
const QString& installPath,
57 std::function<
void(
const QString& destination)> installed);
58 void on_packageInstallSuccess(
const Package& addon,
const QString& destination);
59 void on_packageInstallFailure(
const Package& addon,
const QString& error);
63 QItemSelectionModel remoteSelection;
65 QNetworkAccessManager mgr;
66 int m_addonsToRetrieve = 0;
67 bool m_firstTimeCheck{
false};
Used to access all the application-wide state and structures.
Definition ApplicationContext.hpp:25