diff options
Diffstat (limited to '')
-rw-r--r-- | heimdall-frontend/source/PackageData.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/heimdall-frontend/source/PackageData.h b/heimdall-frontend/source/PackageData.h index 28be679..71302db 100644 --- a/heimdall-frontend/source/PackageData.h +++ b/heimdall-frontend/source/PackageData.h @@ -29,8 +29,14 @@ namespace HeimdallFrontend { - class PackageData + class PackageData : public QObject { + Q_OBJECT + + Q_PROPERTY(HeimdallFrontend::FirmwareInfo *firmwareInfo READ GetFirmwareInfo) + Q_PROPERTY(QList<QString> filePaths READ GetFilePaths) + Q_PROPERTY(QString packagePath READ GetPackagePath) + private: FirmwareInfo firmwareInfo; @@ -39,6 +45,8 @@ namespace HeimdallFrontend public: + static void Register(void); + PackageData(); ~PackageData(); @@ -47,14 +55,14 @@ namespace HeimdallFrontend bool IsCleared(void) const; - const FirmwareInfo& GetFirmwareInfo(void) const + const FirmwareInfo *GetFirmwareInfo(void) const { - return (firmwareInfo); + return (&firmwareInfo); } - FirmwareInfo& GetFirmwareInfo(void) + FirmwareInfo *GetFirmwareInfo(void) { - return (firmwareInfo); + return (&firmwareInfo); } const QList<QString>& GetFilePaths(void) const @@ -79,4 +87,6 @@ namespace HeimdallFrontend }; } +Q_DECLARE_METATYPE(HeimdallFrontend::PackageData *) + #endif |