QuaZIP quazip-0-5-1

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

- File List

quazipnewinfo.h

    00001 #ifndef QUA_ZIPNEWINFO_H
    00002 #define QUA_ZIPNEWINFO_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 <QDateTime>
    00028 #include <QString>
    00029
    00030 #include "quazip_global.h"
    00031
    00033
    00038 struct QUAZIP_EXPORT QuaZipNewInfo {
    00040
    00043   QString name;
    00045
    00050   QDateTime dateTime;
    00052   quint16 internalAttr;
    00054
    00059   quint32 externalAttr;
    00061
    00063   QString comment;
    00065   QByteArray extraLocal;
    00067   QByteArray extraGlobal;
    00069
    00072   ulong uncompressedSize;
    00074
    00078   QuaZipNewInfo(const QString& name);
    00080
    00088   QuaZipNewInfo(const QString& name, const QString& file);
    00090
    00104   void setFileDateTime(const QString& file);
    00106
    00111   void setFilePermissions(const QString &file);
    00113
    00118   void setPermissions(QFile::Permissions permissions);
    00119 };
    00120
    00121 #endif