31 QTableView* localView() {
return m_addonsOnSystem; }
32 QTableView* remoteView() {
return m_remoteAddons; }
34 QPushButton& installButton()
const {
return *m_install; }
36 QWidget* getWidget()
override;
39 void firstTimeLibraryDownload();
41 void handleAddonList(
const QJsonObject&);
42 void handleAddon(
const QJsonObject&);
45 int getCurrentRow(
const QTableView* t);
48 void installAddon(
const Package& addon);
49 void installLibrary(
const Package& addon);
54 void install_package(
const Package& addon);
59 void on_message(QNetworkReply* rep);
61 void on_packageInstallSuccess(
62 const Package& addon,
const QDir& destination,
const std::vector<QString>& res);
63 void on_packageInstallFailure(
const Package& addon);
67 void reset_progress();
68 void progress_from_bytes(qint64 bytesReceived, qint64 bytesTotal);
70 QWidget* m_widget{
new QWidget};
72 QTableView* m_addonsOnSystem{
new QTableView};
73 QTableView* m_remoteAddons{
new QTableView};
75 QPushButton* m_link{
new QPushButton{tr(
"Open link")}};
76 QPushButton* m_install{
new QPushButton{tr(
"Install")}};
77 QPushButton* m_uninstall{
new QPushButton{tr(
"Uninstall")}};
78 QPushButton* m_update{
new QPushButton{tr(
"Update")}};
79 QPushButton* m_updateAll{
new QPushButton{tr(
"Update all")}};
81 QProgressBar* m_progress{
new QProgressBar};
82 QNetworkAccessManager mgr;
83 int m_addonsToRetrieve = 0;
86 QLabel* m_storage{
new QLabel};
88 bool m_firstTimeCheck{
false};