quazipnewinfo.h
#ifndef QUA_ZIPNEWINFO_H
#define QUA_ZIPNEWINFO_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, see
quazip/(un)zip.h files for details, basically it's zlib license.
**/
#include <QDateTime>
#include <QFile>
#include <QString>
#include "quazip_global.h"
#include "quazipfileinfo.h"
struct QUAZIP_EXPORT QuaZipNewInfo {
QString name;
QDateTime dateTime;
quint16 internalAttr;
quint32 externalAttr;
QString comment;
QByteArray extraLocal;
QByteArray extraGlobal;
ulong uncompressedSize;
QuaZipNewInfo(const QString& name);
QuaZipNewInfo(const QString& name, const QString& file);
QuaZipNewInfo(const QuaZipFileInfo &existing);
QuaZipNewInfo(const QuaZipFileInfo64 &existing);
void setFileDateTime(const QString& file);
void setFilePermissions(const QString &file);
void setPermissions(QFile::Permissions permissions);
void setFileNTFSTimes(const QString &fileName);
void setFileNTFSmTime(const QDateTime &mTime, int fineTicks = 0);
void setFileNTFSaTime(const QDateTime &aTime, int fineTicks = 0);
void setFileNTFScTime(const QDateTime &cTime, int fineTicks = 0);
};
#endif