diff options
author | kh1 <karsten.heimrich@digia.com> | 2013-04-30 15:49:12 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2013-05-06 12:51:24 +0200 |
commit | 23b7654f0d80cc56990cef19f6d4b06b209120b5 (patch) | |
tree | f80c6d4924af29b7e594fddd5562ca34da2e82ec /src/libs/installer/lib7z_facade.h | |
parent | 685b2f25462820d5394a6a61778018b83c3b18d3 (diff) |
Rename and document functions to be more clear what they do.
Change-Id: Ic31df64c4eff8aa19b58d4dcd26b7f99c9e90d3c
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/lib7z_facade.h')
-rw-r--r-- | src/libs/installer/lib7z_facade.h | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/src/libs/installer/lib7z_facade.h b/src/libs/installer/lib7z_facade.h index f84cd987f..a783fbd44 100644 --- a/src/libs/installer/lib7z_facade.h +++ b/src/libs/installer/lib7z_facade.h @@ -85,7 +85,6 @@ namespace Lib7z { QFile::Permissions permissions; QString path; - QString name; QDateTime mtime; quint64 uncompressedSize; quint64 compressedSize; @@ -151,20 +150,32 @@ namespace Lib7z { void deviceDestroyed(QObject*); }; - /* - * @throws Lib7z::SevenZipException - */ - void INSTALLER_EXPORT extractArchive( QIODevice* archive, const File& item, QIODevice* out, ExtractCallback* callback=0 ); + /*! + Extracts the given File \a file from \a archive into output device \a out using the provided extract + callback \a callback. - /* - * @throws Lib7z::SevenZipException - */ - void INSTALLER_EXPORT extractArchive( QIODevice* archive, const File& item, const QString& targetDirectory, ExtractCallback* callback=0 ); + Throws Lib7z::SevenZipException on error. + */ + void INSTALLER_EXPORT extractFileFromArchive(QIODevice* archive, const File& item, QIODevice* out, + ExtractCallback* callback=0 ); - /* - * @throws Lib7z::SevenZipException - */ - void INSTALLER_EXPORT extractArchive( QIODevice* archive, const QString& targetDirectory, 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(QIODevice* archive, const File& item, + 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(QIODevice* archive, const QString& targetDirectory, + ExtractCallback* callback = 0); /* * @thows Lib7z::SevenZipException |