JlCompress.h   JlCompress.h 
#ifndef JLCOMPRESSFOLDER_H_ #ifndef JLCOMPRESSFOLDER_H_
#define JLCOMPRESSFOLDER_H_ #define JLCOMPRESSFOLDER_H_
/*
Copyright (C) 2010 Roberto Pompermaier
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
#include "quazip.h" #include "quazip.h"
#include "quazipfile.h" #include "quazipfile.h"
#include "quazipfileinfo.h" #include "quazipfileinfo.h"
#include <QString> #include <QString>
#include <QDir> #include <QDir>
#include <QFileInfo> #include <QFileInfo>
#include <QFile> #include <QFile>
/// Utility class for typical operations. /// Utility class for typical operations.
/** /**
 End of changes. 1 change blocks. 
0 lines changed or deleted 25 lines changed or added


 quaadler32.h   quaadler32.h 
#ifndef QUAADLER32_H #ifndef QUAADLER32_H
#define QUAADLER32_H #define QUAADLER32_H
/*
Copyright (C) 2010 Adam Walczak
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
#include <QByteArray> #include <QByteArray>
#include "quachecksum32.h" #include "quachecksum32.h"
/// Adler32 checksum /// Adler32 checksum
/** \class QuaAdler32 quaadler32.h <quazip/quaadler32.h> /** \class QuaAdler32 quaadler32.h <quazip/quaadler32.h>
* This class wrappers the adler32 function with the QuaChecksum32 interfac e. * This class wrappers the adler32 function with the QuaChecksum32 interfac e.
* See QuaChecksum32 for more info. * See QuaChecksum32 for more info.
*/ */
class QUAZIP_EXPORT QuaAdler32 : public QuaChecksum32 class QUAZIP_EXPORT QuaAdler32 : public QuaChecksum32
 End of changes. 1 change blocks. 
0 lines changed or deleted 25 lines changed or added


 quachecksum32.h   quachecksum32.h 
#ifndef QUACHECKSUM32_H #ifndef QUACHECKSUM32_H
#define QUACHECKSUM32_H #define QUACHECKSUM32_H
/*
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
#include <QByteArray> #include <QByteArray>
#include "quazip_global.h" #include "quazip_global.h"
/// Checksum interface. /// Checksum interface.
/** \class QuaChecksum32 quachecksum32.h <quazip/quachecksum32.h> /** \class QuaChecksum32 quachecksum32.h <quazip/quachecksum32.h>
* This is an interface for 32 bit checksums. * This is an interface for 32 bit checksums.
* Classes implementing this interface can calcunate a certin * Classes implementing this interface can calcunate a certin
* checksum in a single step: * checksum in a single step:
* \code * \code
* QChecksum32 *crc32 = new QuaCrc32(); * QChecksum32 *crc32 = new QuaCrc32();
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 lines changed or added


 quacrc32.h   quacrc32.h 
#ifndef QUACRC32_H #ifndef QUACRC32_H
#define QUACRC32_H #define QUACRC32_H
/*
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
#include "quachecksum32.h" #include "quachecksum32.h"
///CRC32 checksum ///CRC32 checksum
/** \class QuaCrc32 quacrc32.h <quazip/quacrc32.h> /** \class QuaCrc32 quacrc32.h <quazip/quacrc32.h>
* This class wrappers the crc32 function with the QuaChecksum32 interface. * This class wrappers the crc32 function with the QuaChecksum32 interface.
* See QuaChecksum32 for more info. * See QuaChecksum32 for more info.
*/ */
class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 { class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 {
public: public:
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 lines changed or added


 quagzipfile.h   quagzipfile.h 
#ifndef QUAZIP_QUAGZIPFILE_H #ifndef QUAZIP_QUAGZIPFILE_H
#define QUAZIP_QUAGZIPFILE_H #define QUAZIP_QUAGZIPFILE_H
/*
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
#include <QIODevice> #include <QIODevice>
#include "quazip_global.h" #include "quazip_global.h"
#include <zlib.h> #include <zlib.h>
class QuaGzipFilePrivate; class QuaGzipFilePrivate;
/// GZIP file /// GZIP file
/** /**
This class is a wrapper around GZIP file access functions in zlib. Unlike QuaZip classes, it doesn't allow reading from a GZIP file opened as QIODev ice, for example, if your GZIP file is in QBuffer. It only provides QIODevi ce access to a GZIP file contents, but the GZIP file itself must be identif ied by its name on disk or by descriptor id. This class is a wrapper around GZIP file access functions in zlib. Unlike QuaZip classes, it doesn't allow reading from a GZIP file opened as QIODev ice, for example, if your GZIP file is in QBuffer. It only provides QIODevi ce access to a GZIP file contents, but the GZIP file itself must be identif ied by its name on disk or by descriptor id.
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 lines changed or added


 quaziodevice.h   quaziodevice.h 
#ifndef QUAZIP_QUAZIODEVICE_H #ifndef QUAZIP_QUAZIODEVICE_H
#define QUAZIP_QUAZIODEVICE_H #define QUAZIP_QUAZIODEVICE_H
/*
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
#include <QIODevice> #include <QIODevice>
#include "quazip_global.h" #include "quazip_global.h"
#include <zlib.h> #include <zlib.h>
class QuaZIODevicePrivate; class QuaZIODevicePrivate;
/// A class to compress/decompress QIODevice. /// A class to compress/decompress QIODevice.
/** /**
This class can be used to compress any data written to QIODevice or This class can be used to compress any data written to QIODevice or
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 lines changed or added


 quazip.h   quazip.h 
#ifndef QUA_ZIP_H #ifndef QUA_ZIP_H
#define QUA_ZIP_H #define QUA_ZIP_H
/* /*
Copyright (C) 2005-2011 Sergey A. Tachenov Copyright (C) 2005-2014 Sergey A. Tachenov
This program is free software; you can redistribute it and/or modify it This file is part of QuaZIP.
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at QuaZIP is free software: you can redistribute it and/or modify
your option) any later version. it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
This program is distributed in the hope that it will be useful, but (at your option) any later version.
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser QuaZIP is distributed in the hope that it will be useful,
General Public License for more details. but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See COPYING file for the full LGPL text. See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant, see Original ZIP package is copyrighted by Gilles Vollant, see
quazip/(un)zip.h files for details, basically it's zlib license. quazip/(un)zip.h files for details, basically it's zlib license.
**/ **/
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QTextCodec> #include <QTextCodec>
skipping to change at line 342 skipping to change at line 343
* *
* Should be used only in QuaZip::mdUnzip mode. * Should be used only in QuaZip::mdUnzip mode.
* *
* Does nothing and returns \c false in any of the following cases. * Does nothing and returns \c false in any of the following cases.
* - ZIP is not open; * - ZIP is not open;
* - ZIP does not have current file. * - ZIP does not have current file.
* *
* In both cases getZipError() returns \c UNZ_OK since there * In both cases getZipError() returns \c UNZ_OK since there
* is no ZIP/UNZIP API call. * is no ZIP/UNZIP API call.
* *
* This overload doesn't support zip64. * This overload doesn't support zip64, but will work OK on zip64 archi
ves
* except that if one of the sizes (compressed or uncompressed) is grea
ter
* than 0xFFFFFFFFu, it will be set to exactly 0xFFFFFFFFu.
* *
* \sa getCurrentFileInfo(QuaZipFileInfo64* info)const * \sa getCurrentFileInfo(QuaZipFileInfo64* info)const
* \sa QuaZipFileInfo64::toQuaZipFileInfo(QuaZipFileInfo&)const
**/ **/
bool getCurrentFileInfo(QuaZipFileInfo* info)const; bool getCurrentFileInfo(QuaZipFileInfo* info)const;
/// Retrieves information about the current file. /// Retrieves information about the current file.
/** \overload /** \overload
* *
* This function supports zip64. If the archive doesn't use zip64, it i s * This function supports zip64. If the archive doesn't use zip64, it i s
* completely equivalent to getCurrentFileInfo(QuaZipFileInfo* info) * completely equivalent to getCurrentFileInfo(QuaZipFileInfo* info)
* except for the argument type. * except for the argument type.
* *
* \sa * \sa
skipping to change at line 431 skipping to change at line 435
was an error or if the archive is empty (call getZipError() to was an error or if the archive is empty (call getZipError() to
figure out which). figure out which).
\sa getFileInfoList() \sa getFileInfoList()
*/ */
QStringList getFileNameList() const; QStringList getFileNameList() const;
/// Returns information list about all files inside the archive. /// Returns information list about all files inside the archive.
/** /**
\return A list of QuaZipFileInfo objects or an empty list if there \return A list of QuaZipFileInfo objects or an empty list if there
was an error or if the archive is empty (call getZipError() to was an error or if the archive is empty (call getZipError() to
figure out which). figure out which).
This function doesn't support zip64, but will still work with zip64
archives, converting results using QuaZipFileInfo64::toQuaZipFileInfo
().
If all file sizes are below 4 GB, it will work just fine.
\sa getFileNameList() \sa getFileNameList()
\sa getFileInfoList64()
*/ */
QList<QuaZipFileInfo> getFileInfoList() const; QList<QuaZipFileInfo> getFileInfoList() const;
/// Returns information list about all files inside the archive.
/**
\overload
This function supports zip64.
\sa getFileNameList()
\sa getFileInfoList()
*/
QList<QuaZipFileInfo64> getFileInfoList64() const;
/// Enables the zip64 mode. /// Enables the zip64 mode.
/** /**
* @param zip64 If \c true, the zip64 mode is enabled, disabled otherwi se. * @param zip64 If \c true, the zip64 mode is enabled, disabled otherwi se.
* *
* Once this is enabled, all new files (until the mode is disabled agai n) * Once this is enabled, all new files (until the mode is disabled agai n)
* will be created in the zip64 mode, thus enabling the ability to writ e * will be created in the zip64 mode, thus enabling the ability to writ e
* files larger than 4 GB. By default, the zip64 mode is off due to * files larger than 4 GB. By default, the zip64 mode is off due to
* compatibility reasons. * compatibility reasons.
* *
* \sa isZip64Enabled() * \sa isZip64Enabled()
 End of changes. 8 change blocks. 
13 lines changed or deleted 36 lines changed or added


 quazip_global.h   quazip_global.h 
/** #ifndef QUAZIP_GLOBAL_H
Copyright (C) 2005-2011 Sergey A. Tachenov #define QUAZIP_GLOBAL_H
/*
Copyright (C) 2005-2014 Sergey A. Tachenov
This program is free software; you can redistribute it and/or modify it This file is part of QuaZIP.
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at QuaZIP is free software: you can redistribute it and/or modify
your option) any later version. it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
This program is distributed in the hope that it will be useful, but (at your option) any later version.
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser QuaZIP is distributed in the hope that it will be useful,
General Public License for more details. but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See COPYING file for the full LGPL text. See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant, see Original ZIP package is copyrighted by Gilles Vollant and contributors,
quazip/(un)zip.h files for details, basically it's zlib license. see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/ */
#ifndef QUAZIP_GLOBAL_H
#define QUAZIP_GLOBAL_H
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
/** /**
This is automatically defined when building a static library, but when This is automatically defined when building a static library, but when
including QuaZip sources directly into a project, QUAZIP_STATIC should including QuaZip sources directly into a project, QUAZIP_STATIC should
be defined explicitly to avoid possible troubles with unnecessary be defined explicitly to avoid possible troubles with unnecessary
importing/exporting. importing/exporting.
*/ */
#ifdef QUAZIP_STATIC #ifdef QUAZIP_STATIC
 End of changes. 4 change blocks. 
19 lines changed or deleted 20 lines changed or added


 quazipdir.h   quazipdir.h 
#ifndef QUAZIP_QUAZIPDIR_H #ifndef QUAZIP_QUAZIPDIR_H
#define QUAZIP_QUAZIPDIR_H #define QUAZIP_QUAZIPDIR_H
/*
Copyright (C) 2005-2014 Sergey A. Tachenov
This file is part of QuaZIP.
QuaZIP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuaZIP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant and contributors,
see quazip/(un)zip.h files for details. Basically it's the zlib license.
*/
class QuaZipDirPrivate; class QuaZipDirPrivate;
#include "quazip.h" #include "quazip.h"
#include "quazipfileinfo.h" #include "quazipfileinfo.h"
#include <QDir> #include <QDir>
#include <QList> #include <QList>
#include <QSharedDataPointer> #include <QSharedDataPointer>
/// Provides ZIP archive navigation. /// Provides ZIP archive navigation.
/** /**
skipping to change at line 25 skipping to change at line 49
* features for ZIP archives. * features for ZIP archives.
* *
* The only significant difference from QDir is that the root path is not * The only significant difference from QDir is that the root path is not
* '/', but an empty string since that's how the file paths are stored in * '/', but an empty string since that's how the file paths are stored in
* the archive. However, QuaZipDir understands the paths starting with * the archive. However, QuaZipDir understands the paths starting with
* '/'. It is important in a few places: * '/'. It is important in a few places:
* *
* - In the cd() function. * - In the cd() function.
* - In the constructor. * - In the constructor.
* - In the exists() function. * - In the exists() function.
* - In the relativePath() function.
* *
* Note that since ZIP uses '/' on all platforms, the '\' separator is * Note that since ZIP uses '/' on all platforms, the '\' separator is
* not supported. * not supported.
*/ */
class QUAZIP_EXPORT QuaZipDir { class QUAZIP_EXPORT QuaZipDir {
private: private:
QSharedDataPointer<QuaZipDirPrivate> d; QSharedDataPointer<QuaZipDirPrivate> d;
public: public:
/// The copy constructor. /// The copy constructor.
QuaZipDir(const QuaZipDir &that); QuaZipDir(const QuaZipDir &that);
skipping to change at line 87 skipping to change at line 112
/** /**
The name doesn't include the path. The name doesn't include the path.
*/ */
QString dirName() const; QString dirName() const;
/// Returns the list of the entries in the directory. /// Returns the list of the entries in the directory.
/** /**
\param nameFilters The list of file patterns to list, uses the same \param nameFilters The list of file patterns to list, uses the same
syntax as QDir. syntax as QDir.
\param filters The entry type filters, only Files and Dirs are \param filters The entry type filters, only Files and Dirs are
accepted. accepted.
\param sort Sorting mode (not supported yet). \param sort Sorting mode.
*/ */
QList<QuaZipFileInfo> entryInfoList(const QStringList &nameFilters, QList<QuaZipFileInfo> entryInfoList(const QStringList &nameFilters,
QDir::Filters filters = QDir::NoFilter, QDir::Filters filters = QDir::NoFilter,
QDir::SortFlags sort = QDir::NoSort) const; QDir::SortFlags sort = QDir::NoSort) const;
/// Returns the list of the entries in the directory. /// Returns the list of the entries in the directory.
/** /**
\overload \overload
The same as entryInfoList(QStringList(), filters, sort). The same as entryInfoList(QStringList(), filters, sort).
*/ */
QList<QuaZipFileInfo> entryInfoList(QDir::Filters filters = QDir::NoFil ter, QList<QuaZipFileInfo> entryInfoList(QDir::Filters filters = QDir::NoFil ter,
QDir::SortFlags sort = QDir::NoSort) const; QDir::SortFlags sort = QDir::NoSort) const;
/// Returns the list of the entries in the directory with zip64 support
.
/**
\param nameFilters The list of file patterns to list, uses the same
syntax as QDir.
\param filters The entry type filters, only Files and Dirs are
accepted.
\param sort Sorting mode.
*/
QList<QuaZipFileInfo64> entryInfoList64(const QStringList &nameFilters,
QDir::Filters filters = QDir::NoFilter,
QDir::SortFlags sort = QDir::NoSort) const;
/// Returns the list of the entries in the directory with zip64 support
.
/**
\overload
The same as entryInfoList64(QStringList(), filters, sort).
*/
QList<QuaZipFileInfo64> entryInfoList64(QDir::Filters filters = QDir::N
oFilter,
QDir::SortFlags sort = QDir::NoSort) const;
/// Returns the list of the entry names in the directory. /// Returns the list of the entry names in the directory.
/** /**
The same as entryInfoList(nameFilters, filters, sort), but only The same as entryInfoList(nameFilters, filters, sort), but only
returns entry names. returns entry names.
*/ */
QStringList entryList(const QStringList &nameFilters, QStringList entryList(const QStringList &nameFilters,
QDir::Filters filters = QDir::NoFilter, QDir::Filters filters = QDir::NoFilter,
QDir::SortFlags sort = QDir::NoSort) const; QDir::SortFlags sort = QDir::NoSort) const;
/// Returns the list of the entry names in the directory. /// Returns the list of the entry names in the directory.
/** /**
skipping to change at line 147 skipping to change at line 191
bool isRoot() const; bool isRoot() const;
/// Return the default name filter. /// Return the default name filter.
QStringList nameFilters() const; QStringList nameFilters() const;
/// Returns the path to the current dir. /// Returns the path to the current dir.
/** /**
The path never starts with '/', and the root path is an empty The path never starts with '/', and the root path is an empty
string. string.
*/ */
QString path() const; QString path() const;
/// Returns the path to the specified file relative to the current dir. /// Returns the path to the specified file relative to the current dir.
/**
* This function is mostly useless, provided only for the sake of
* completeness.
*
* @param fileName The path to the file, should start with &quot;/&quot
;
* if relative to the archive root.
* @return Path relative to the current dir.
*/
QString relativeFilePath(const QString &fileName) const; QString relativeFilePath(const QString &fileName) const;
/// Sets the default case sensitivity mode. /// Sets the default case sensitivity mode.
void setCaseSensitivity(QuaZip::CaseSensitivity caseSensitivity); void setCaseSensitivity(QuaZip::CaseSensitivity caseSensitivity);
/// Sets the default filter. /// Sets the default filter.
void setFilter(QDir::Filters filters); void setFilter(QDir::Filters filters);
/// Sets the default name filter. /// Sets the default name filter.
void setNameFilters(const QStringList &nameFilters); void setNameFilters(const QStringList &nameFilters);
/// Goes to the specified path. /// Goes to the specified path.
/** /**
The difference from cd() is that this function never checks if the The difference from cd() is that this function never checks if the
 End of changes. 5 change blocks. 
1 lines changed or deleted 57 lines changed or added


 quazipfile.h   quazipfile.h 
#ifndef QUA_ZIPFILE_H #ifndef QUA_ZIPFILE_H
#define QUA_ZIPFILE_H #define QUA_ZIPFILE_H
/* /*
Copyright (C) 2005-2011 Sergey A. Tachenov Copyright (C) 2005-2014 Sergey A. Tachenov
This program is free software; you can redistribute it and/or modify it This file is part of QuaZIP.
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at QuaZIP is free software: you can redistribute it and/or modify
your option) any later version. it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
This program is distributed in the hope that it will be useful, but (at your option) any later version.
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser QuaZIP is distributed in the hope that it will be useful,
General Public License for more details. but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See COPYING file for the full LGPL text. See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant, see Original ZIP package is copyrighted by Gilles Vollant, see
quazip/(un)zip.h files for details, basically it's zlib license. quazip/(un)zip.h files for details, basically it's zlib license.
**/ **/
#include <QIODevice> #include <QIODevice>
#include "quazip_global.h" #include "quazip_global.h"
skipping to change at line 429 skipping to change at line 430
qint64 usize()const; qint64 usize()const;
/// Gets information about current file. /// Gets information about current file.
/** This function does the same thing as calling /** This function does the same thing as calling
* QuaZip::getCurrentFileInfo() on the associated QuaZip object, * QuaZip::getCurrentFileInfo() on the associated QuaZip object,
* but you can not call getCurrentFileInfo() if the associated * but you can not call getCurrentFileInfo() if the associated
* QuaZip is internal (because you do not have access to it), while * QuaZip is internal (because you do not have access to it), while
* you still can call this function in that case. * you still can call this function in that case.
* *
* File must be open for reading before calling this function. * File must be open for reading before calling this function.
* *
* Returns \c false in the case of an error. * \return \c false in the case of an error.
*
* This function doesn't support zip64, but will still work fine on zip
64
* archives if file sizes are below 4 GB, otherwise the values will be
set
* as if converted using QuaZipFileInfo64::toQuaZipFileInfo().
*
* \sa getFileInfo(QuaZipFileInfo64*)
**/ **/
bool getFileInfo(QuaZipFileInfo *info); bool getFileInfo(QuaZipFileInfo *info);
/// Gets information about current file with zip64 support.
/**
* @overload
*
* \sa getFileInfo(QuaZipFileInfo*)
*/
bool getFileInfo(QuaZipFileInfo64 *info);
/// Closes the file. /// Closes the file.
/** Call getZipError() to determine if the close was successful. /** Call getZipError() to determine if the close was successful.
**/ **/
virtual void close(); virtual void close();
/// Returns the error code returned by the last ZIP/UNZIP API call. /// Returns the error code returned by the last ZIP/UNZIP API call.
int getZipError() const; int getZipError() const;
/// Returns the number of bytes available for reading. /// Returns the number of bytes available for reading.
virtual qint64 bytesAvailable() const; virtual qint64 bytesAvailable() const;
}; };
 End of changes. 5 change blocks. 
13 lines changed or deleted 29 lines changed or added


 quazipfileinfo.h   quazipfileinfo.h 
#ifndef QUA_ZIPFILEINFO_H #ifndef QUA_ZIPFILEINFO_H
#define QUA_ZIPFILEINFO_H #define QUA_ZIPFILEINFO_H
/* /*
Copyright (C) 2005-2011 Sergey A. Tachenov Copyright (C) 2005-2014 Sergey A. Tachenov
This program is free software; you can redistribute it and/or modify it This file is part of QuaZIP.
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at QuaZIP is free software: you can redistribute it and/or modify
your option) any later version. it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
This program is distributed in the hope that it will be useful, but (at your option) any later version.
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser QuaZIP is distributed in the hope that it will be useful,
General Public License for more details. but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See COPYING file for the full LGPL text. See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant, see Original ZIP package is copyrighted by Gilles Vollant and contributors,
quazip/(un)zip.h files for details, basically it's zlib license. see quazip/(un)zip.h files for details. Basically it's the zlib license.
**/ */
#include <QByteArray> #include <QByteArray>
#include <QDateTime> #include <QDateTime>
#include <QFile> #include <QFile>
#include "quazip_global.h" #include "quazip_global.h"
/// Information about a file inside archive. /// Information about a file inside archive.
/** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to /** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to
* fill this structure. */ * fill this structure. */
skipping to change at line 111 skipping to change at line 112
/// Comment. /// Comment.
QString comment; QString comment;
/// Extra field. /// Extra field.
QByteArray extra; QByteArray extra;
/// Get the file permissions. /// Get the file permissions.
/** /**
Returns the high 16 bits of external attributes converted to Returns the high 16 bits of external attributes converted to
QFile::Permissions. QFile::Permissions.
*/ */
QFile::Permissions getPermissions() const; QFile::Permissions getPermissions() const;
/// Converts to QuaZipFileInfo
/**
If any of the fields are greater than 0xFFFFFFFFu, they are set to
0xFFFFFFFFu exactly, not just truncated. This function should be mainly
used
for compatibility with the old code expecting QuaZipFileInfo, in the ca
ses
when it's impossible or otherwise unadvisable (due to ABI compatibility
reasons, for example) to modify that old code to use QuaZipFileInfo64.
\return \c true if all fields converted correctly, \c false if an overf
low
occured.
*/
bool toQuaZipFileInfo(QuaZipFileInfo &info) const;
}; };
#endif #endif
 End of changes. 5 change blocks. 
15 lines changed or deleted 31 lines changed or added


 quazipnewinfo.h   quazipnewinfo.h 
#ifndef QUA_ZIPNEWINFO_H #ifndef QUA_ZIPNEWINFO_H
#define QUA_ZIPNEWINFO_H #define QUA_ZIPNEWINFO_H
/* /*
Copyright (C) 2005-2011 Sergey A. Tachenov Copyright (C) 2005-2014 Sergey A. Tachenov
This program is free software; you can redistribute it and/or modify it This file is part of QuaZIP.
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at QuaZIP is free software: you can redistribute it and/or modify
your option) any later version. it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
This program is distributed in the hope that it will be useful, but (at your option) any later version.
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser QuaZIP is distributed in the hope that it will be useful,
General Public License for more details. but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See COPYING file for the full LGPL text. See COPYING file for the full LGPL text.
Original ZIP package is copyrighted by Gilles Vollant, see Original ZIP package is copyrighted by Gilles Vollant, see
quazip/(un)zip.h files for details, basically it's zlib license. quazip/(un)zip.h files for details, basically it's zlib license.
**/ **/
#include <QDateTime> #include <QDateTime>
#include <QFile> #include <QFile>
#include <QString> #include <QString>
 End of changes. 3 change blocks. 
12 lines changed or deleted 13 lines changed or added


 unzip.h   unzip.h 
skipping to change at line 41 skipping to change at line 41
2. Altered source versions must be plainly marked as such, and must not b e 2. Altered source versions must be plainly marked as such, and must not b e
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution . 3. This notice may not be removed or altered from any source distribution .
------------------------------------------------------------------------- -------- ------------------------------------------------------------------------- --------
Changes Changes
See header of unzip64.c See header of unzip64.c
-------------------------------------------------------------------------
--
As per the requirement above, this file is plainly marked as modified
by Sergey A. Tachenov. Most modifications include the I/O API redesign
to support QIODevice interface. Some improvements and small fixes were al
so made.
*/ */
#ifndef _unz64_H #ifndef _unz64_H
#define _unz64_H #define _unz64_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#ifndef _ZLIB_H #ifndef _ZLIB_H
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added


 zip.h   zip.h 
skipping to change at line 38 skipping to change at line 38
2. Altered source versions must be plainly marked as such, and must not b e 2. Altered source versions must be plainly marked as such, and must not b e
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution . 3. This notice may not be removed or altered from any source distribution .
------------------------------------------------------------------- -------- ------------------------------------------------------------------- --------
Changes Changes
See header of zip.h See header of zip.h
-------------------------------------------------------------------
--------
As per the requirement above, this file is plainly marked as modified
by Sergey A. Tachenov. Most modifications include the I/O API redesign
to support QIODevice interface. Some improvements and small fixes were al
so made.
*/ */
#ifndef _zip12_H #ifndef _zip12_H
#define _zip12_H #define _zip12_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
//#define HAVE_BZIP2 //#define HAVE_BZIP2
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/