diff options
author | Benjamin Dobell <benjamin.dobell@glassechidna.com.au> | 2011-07-19 20:18:18 +0200 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell@glassechidna.com.au> | 2011-07-19 20:18:18 +0200 |
commit | 3fe256448148044b7c4a6f70b7947ec51033cf86 (patch) | |
tree | 23b06e76f2d1257025218d62b0ec8f515c26b10d /heimdall-frontend/Source/Packaging.h | |
parent | Merge branch 'master' of github.com:Benjamin-Dobell/Heimdall (diff) | |
download | Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.tar Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.tar.gz Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.tar.bz2 Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.tar.lz Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.tar.xz Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.tar.zst Heimdall-3fe256448148044b7c4a6f70b7947ec51033cf86.zip |
Diffstat (limited to '')
-rw-r--r-- | heimdall-frontend/Source/Packaging.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/heimdall-frontend/Source/Packaging.h b/heimdall-frontend/Source/Packaging.h index 402f786..b6bac8d 100644 --- a/heimdall-frontend/Source/Packaging.h +++ b/heimdall-frontend/Source/Packaging.h @@ -103,7 +103,7 @@ namespace HeimdallFrontend // TODO: Add support for sparse files to both methods? static bool ExtractTar(QTemporaryFile& tarFile, PackageData *packageData); - static bool WriteTarEntry(const QString& filename, QTemporaryFile *tarFile, bool firmwareXml = false); + static bool WriteTarEntry(const QString& filePath, QTemporaryFile *tarFile, const QString& entryFilename); static bool CreateTar(const FirmwareInfo& firmwareInfo, QTemporaryFile *tarFile); // Uses original TAR format. public: @@ -112,6 +112,9 @@ namespace HeimdallFrontend static bool ExtractPackage(const QString& packagePath, PackageData *packageData); static bool BuildPackage(const QString& packagePath, const FirmwareInfo& firmwareInfo); + + static QString ClashlessFilename(const QList<FileInfo>& fileInfos, int fileInfoIndex); + static QString ClashlessFilename(const QList<FileInfo>& fileInfos, const QString& filename); }; } |