FlightGear next
LauncherPackageDelegate.hxx
Go to the documentation of this file.
1#ifndef LAUNCHERPACKAGEDELEGATE_HXX
2#define LAUNCHERPACKAGEDELEGATE_HXX
3
4#include <string>
5
6#include <QObject>
7
8#include <simgear/package/Delegate.hxx>
9#include <simgear/package/Install.hxx>
10#include <simgear/package/Package.hxx>
11#include <simgear/package/Root.hxx>
12
13class LauncherPackageDelegate : public QObject,
14 public simgear::pkg::Delegate
15{
16 Q_OBJECT
17
18public:
19 explicit LauncherPackageDelegate(QObject* parent = nullptr);
21
22protected:
23 void catalogRefreshed(simgear::pkg::CatalogRef aCatalog, StatusCode aReason) override;
24
25 // mandatory overrides, not actually needed here.
26 void startInstall(simgear::pkg::InstallRef) override {}
27 void installProgress(simgear::pkg::InstallRef, unsigned int, unsigned int) override{};
28 void finishInstall(simgear::pkg::InstallRef ref, StatusCode status) override;
29
30signals:
32
33private:
34 std::string _defaultCatalogId;
35};
36
37#endif // LAUNCHERPACKAGEDELEGATE_HXX
LauncherPackageDelegate(QObject *parent=nullptr)
void startInstall(simgear::pkg::InstallRef) override
void catalogRefreshed(simgear::pkg::CatalogRef aCatalog, StatusCode aReason) override
void finishInstall(simgear::pkg::InstallRef ref, StatusCode status) override
void installProgress(simgear::pkg::InstallRef, unsigned int, unsigned int) override
void didMigrateOfficialHangarChanged()
static int status