diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-05-19 16:06:33 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-06-09 13:08:31 +0000 |
commit | 22ec6aa53e44069c03c7baf94881949c7a4facff (patch) | |
tree | 9a46d0e057a1d419202ec5026dcbd4e58e6e3b06 /src/libs/installer/lib7z_facade.h | |
parent | fa5f7c662841b1d13f6610db8817608a24e3a3f6 (diff) |
Update documentation and adjust some code to match.
Change-Id: I3a8d9afb79628135051e4133bea9fc66e14a514a
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/lib7z_facade.h')
-rw-r--r-- | src/libs/installer/lib7z_facade.h | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/src/libs/installer/lib7z_facade.h b/src/libs/installer/lib7z_facade.h index ff0e7a1e4..8bc4b1780 100644 --- a/src/libs/installer/lib7z_facade.h +++ b/src/libs/installer/lib7z_facade.h @@ -97,12 +97,6 @@ namespace Lib7z { void setTarget(const QString &dir); protected: - /*! - Reimplement to prepare for file @p filename to be extracted, e.g. by renaming existing - files. @return @p true if the preparation was successful and extraction can be continued. - If @p false is returned, the extraction will be aborted. Default implementation returns - @p true. - */ virtual bool prepareForFile(const QString &filename); virtual void setCurrentFile(const QString &filename); virtual HRESULT setCompleted(quint64 completed, quint64 total); @@ -145,54 +139,21 @@ namespace Lib7z { void deviceDestroyed(QObject*); }; - /*! - Extracts the given File \a file from \a archive into output device \a out using the - provided extract callback \a callback. + void INSTALLER_EXPORT extractFileFromArchive(QFileDevice *archive, const File &file, + QFileDevice *target, ExtractCallback *callback = 0); - Throws Lib7z::SevenZipException on error. - */ - void INSTALLER_EXPORT extractFileFromArchive(QFileDevice *archive, const File &item, - QFileDevice *out, ExtractCallback *callback = 0); - - /*! - Extracts the given File \a file from \a archive into target directory \a targetDirectory - using the provided extract callback \a callback. The output filename is deduced from the - \a file path name. - - Throws Lib7z::SevenZipException on error. - */ - void INSTALLER_EXPORT extractFileFromArchive(QFileDevice *archive, const File &item, + void INSTALLER_EXPORT extractFileFromArchive(QFileDevice *archive, const File &file, const QString &targetDirectory, ExtractCallback *callback = 0); - /*! - Extracts the given \a archive content into target directory \a targetDirectory using the - provided extract callback \a callback. The output filenames are deduced from the \a archive - content. - - Throws Lib7z::SevenZipException on error. - */ void INSTALLER_EXPORT extractArchive(QFileDevice *archive, const QString &targetDirectory, ExtractCallback *callback = 0); - /* - @thows Lib7z::SevenZipException - */ void INSTALLER_EXPORT createArchive(QFileDevice *archive, const QStringList &sourcePaths, UpdateCallback *callback = 0); - /*! - @thows Lib7z::SevenZipException - */ QVector<File> INSTALLER_EXPORT listArchive(QFileDevice *archive); - /*! - @throws Lib7z::SevenZipException - */ bool INSTALLER_EXPORT isSupportedArchive(QFileDevice *archive); - - /*! - @throws Lib7z::SevenZipException - */ bool INSTALLER_EXPORT isSupportedArchive(const QString &archive); } |