diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-11 18:01:41 +0100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-11 18:09:40 +0100 |
commit | 7c6ee7f1a24faeafc793414e877bf014743d9cfe (patch) | |
tree | 805b7839234bae16eeac75f33c471e7ee22f0c0f /heimdall-frontend/source/PackageData.h | |
parent | Lots of Frontend refactoring with a few bug fixes (diff) | |
download | Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.gz Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.bz2 Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.lz Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.xz Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.tar.zst Heimdall-7c6ee7f1a24faeafc793414e877bf014743d9cfe.zip |
Diffstat (limited to 'heimdall-frontend/source/PackageData.h')
-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 |