quazipfileinfo.h
#ifndef QUA_ZIPFILEINFO_H
#define QUA_ZIPFILEINFO_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 <QDateTime>
#include <QFile>
#include "quazip_global.h"
struct QUAZIP_EXPORT QuaZipFileInfo {
QString name;
quint16 versionCreated;
quint16 versionNeeded;
quint16 flags;
quint16 method;
QDateTime dateTime;
quint32 crc;
quint32 compressedSize;
quint32 uncompressedSize;
quint16 diskNumberStart;
quint16 internalAttr;
quint32 externalAttr;
QString comment;
QByteArray extra;
QFile::Permissions getPermissions() const;
};
struct QUAZIP_EXPORT QuaZipFileInfo64 {
QString name;
quint16 versionCreated;
quint16 versionNeeded;
quint16 flags;
quint16 method;
QDateTime dateTime;
quint32 crc;
quint64 compressedSize;
quint64 uncompressedSize;
quint16 diskNumberStart;
quint16 internalAttr;
quint32 externalAttr;
QString comment;
QByteArray extra;
QFile::Permissions getPermissions() const;
bool toQuaZipFileInfo(QuaZipFileInfo &info) const;
QDateTime getNTFSmTime(int *fineTicks = NULL) const;
QDateTime getNTFSaTime(int *fineTicks = NULL) const;
QDateTime getNTFScTime(int *fineTicks = NULL) const;
};
#endif