QuaZIP quazip-0-5-1

- Main Page
- Related Pages
- Classes
- Files
- Directories

- File List

quazipfileinfo.h

    00001 #ifndef QUA_ZIPFILEINFO_H
    00002 #define QUA_ZIPFILEINFO_H
    00003
    00004 /*
    00005 Copyright (C) 2005-2011 Sergey A. Tachenov
    00006
    00007 This program is free software; you can redistribute it and/or modify it
    00008 under the terms of the GNU Lesser General Public License as published by
    00009 the Free Software Foundation; either version 2 of the License, or (at
    00010 your option) any later version.
    00011
    00012 This program is distributed in the hope that it will be useful, but
    00013 WITHOUT ANY WARRANTY; without even the implied warranty of
    00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
    00015 General Public License for more details.
    00016
    00017 You should have received a copy of the GNU Lesser General Public License
    00018 along with this program; if not, write to the Free Software Foundation,
    00019 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    00020
    00021 See COPYING file for the full LGPL text.
    00022
    00023 Original ZIP package is copyrighted by Gilles Vollant, see
    00024 quazip/(un)zip.h files for details, basically it's zlib license.
    00025  **/
    00026
    00027 #include <QByteArray>
    00028 #include <QDateTime>
    00029 #include <QFile>
    00030
    00031 #include "quazip_global.h"
    00032
    00034
    00036 struct QUAZIP_EXPORT QuaZipFileInfo {
    00038   QString name;
    00040   quint16 versionCreated;
    00042   quint16 versionNeeded;
    00044   quint16 flags;
    00046   quint16 method;
    00048   QDateTime dateTime;
    00050   quint32 crc;
    00052   quint32 compressedSize;
    00054   quint32 uncompressedSize;
    00056   quint16 diskNumberStart;
    00058   quint16 internalAttr;
    00060   quint32 externalAttr;
    00062   QString comment;
    00064   QByteArray extra;
    00066
    00070   QFile::Permissions getPermissions() const;
    00071 };
    00072
    00073 #endif