/src/libtomahawk/thirdparty/quazip/quazip/quazipfileinfo.h

http://github.com/tomahawk-player/tomahawk · C Header · 66 lines · 22 code · 5 blank · 39 comment · 0 complexity · f64e12cad1b6f8ddcc3b2a8ca167d3ba MD5 · raw file

  1. #ifndef QUA_ZIPFILEINFO_H
  2. #define QUA_ZIPFILEINFO_H
  3. /*
  4. Copyright (C) 2005-2011 Sergey A. Tachenov
  5. This program is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU Lesser General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or (at
  8. your option) any later version.
  9. This program is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
  12. General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. See COPYING file for the full LGPL text.
  17. Original ZIP package is copyrighted by Gilles Vollant, see
  18. quazip/(un)zip.h files for details, basically it's zlib license.
  19. **/
  20. #include <QByteArray>
  21. #include <QDateTime>
  22. #include "quazip_global.h"
  23. /// Information about a file inside archive.
  24. /** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to
  25. * fill this structure. */
  26. struct QUAZIP_EXPORT QuaZipFileInfo {
  27. /// File name.
  28. QString name;
  29. /// Version created by.
  30. quint16 versionCreated;
  31. /// Version needed to extract.
  32. quint16 versionNeeded;
  33. /// General purpose flags.
  34. quint16 flags;
  35. /// Compression method.
  36. quint16 method;
  37. /// Last modification date and time.
  38. QDateTime dateTime;
  39. /// CRC.
  40. quint32 crc;
  41. /// Compressed file size.
  42. quint32 compressedSize;
  43. /// Uncompressed file size.
  44. quint32 uncompressedSize;
  45. /// Disk number start.
  46. quint16 diskNumberStart;
  47. /// Internal file attributes.
  48. quint16 internalAttr;
  49. /// External file attributes.
  50. quint32 externalAttr;
  51. /// Comment.
  52. QString comment;
  53. /// Extra field.
  54. QByteArray extra;
  55. };
  56. #endif