Qt 4.8
|
#include <qglobal.h>
#include "qzipreader_p.h"
#include "qzipwriter_p.h"
#include <qdatetime.h>
#include <qplatformdefs.h>
#include <qendian.h>
#include <qdebug.h>
#include <qdir.h>
#include <zlib.h>
Go to the source code of this file.
Classes | |
struct | CentralFileHeader |
struct | DataDescriptor |
struct | EndOfDirectory |
struct | FileHeader |
struct | LocalFileHeader |
class | QZipPrivate |
class | QZipReaderPrivate |
class | QZipWriterPrivate |
Macros | |
#define | S_IFDIR 0040000 |
#define | S_IFLNK 020000 |
#define | S_IFREG 0100000 |
#define | S_IRGRP 0040 |
#define | S_IROTH 0004 |
#define | S_IRUSR 0400 |
#define | S_ISDIR(x) ((x) & S_IFDIR) > 0 |
#define | S_ISLNK(x) ((x) & S_IFLNK) > 0 |
#define | S_ISREG(x) ((x) & 0170000) == S_IFREG |
#define | S_IWGRP 0020 |
#define | S_IWOTH 0002 |
#define | S_IWUSR 0200 |
#define | S_IXGRP 0010 |
#define | S_IXOTH 0001 |
#define | S_IXUSR 0100 |
#define | ZDEBUG if (0) qDebug |
Functions | |
static void | copyUInt (uchar *dest, const uchar *src) |
static void | copyUShort (uchar *dest, const uchar *src) |
static int | deflate (Bytef *dest, ulong *destLen, const Bytef *source, ulong sourceLen) |
static int | inflate (Bytef *dest, ulong *destLen, const Bytef *source, ulong sourceLen) |
static QFile::Permissions | modeToPermissions (quint32 mode) |
static quint32 | permissionsToMode (QFile::Permissions perms) |
static QDateTime | readMSDosDate (const uchar *src) |
static uint | readUInt (const uchar *data) |
static ushort | readUShort (const uchar *data) |
static void | writeMSDosDate (uchar *dest, const QDateTime &dt) |
static void | writeUInt (uchar *data, uint i) |
static void | writeUShort (uchar *data, ushort i) |
#define S_IFDIR 0040000 |
Definition at line 60 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry().
#define S_IFLNK 020000 |
Definition at line 68 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry().
#define S_IFREG 0100000 |
Definition at line 58 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry().
#define S_IRGRP 0040 |
Definition at line 79 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IROTH 0004 |
Definition at line 82 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IRUSR 0400 |
Definition at line 71 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_ISDIR | ( | x | ) | ((x) & S_IFDIR) > 0 |
Definition at line 63 of file qzip.cpp.
Referenced by QKqueueFileSystemWatcherEngine::addPaths(), QZipPrivate::fillFileInfo(), and qws_dataDir().
#define S_ISLNK | ( | x | ) | ((x) & S_IFLNK) > 0 |
Definition at line 69 of file qzip.cpp.
Referenced by QZipPrivate::fillFileInfo(), QFileSystemMetaData::fillFromDirEnt(), and QFileSystemEngine::fillMetaData().
#define S_ISREG | ( | x | ) | ((x) & 0170000) == S_IFREG |
Definition at line 66 of file qzip.cpp.
Referenced by QZipPrivate::fillFileInfo().
#define S_IWGRP 0020 |
Definition at line 80 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IWOTH 0002 |
Definition at line 83 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IWUSR 0200 |
Definition at line 74 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IXGRP 0010 |
Definition at line 81 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IXOTH 0001 |
Definition at line 84 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
#define S_IXUSR 0100 |
Definition at line 77 of file qzip.cpp.
Referenced by QMacPasteboardMimeVCard::convertFromMime(), QFileSystemMetaData::fillFromStatBuf(), modeToPermissions(), permissionsToMode(), and QFileSystemEngine::setPermissions().
Definition at line 90 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry(), and QZipReaderPrivate::scanFiles().
Definition at line 119 of file qzip.cpp.
Referenced by CentralFileHeader::toLocalHeader().
Definition at line 127 of file qzip.cpp.
Referenced by CentralFileHeader::toLocalHeader().
Definition at line 224 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry(), and QPdfEnginePrivate::writeCompressed().
Definition at line 189 of file qzip.cpp.
Referenced by QZipReader::fileData(), QHttpNetworkReplyPrivate::gunzipBodyPartially(), and qt_inflateGZipDataFrom().
|
static |
Definition at line 253 of file qzip.cpp.
Referenced by QZipPrivate::fillFileInfo().
|
static |
Definition at line 159 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry().
Definition at line 95 of file qzip.cpp.
Referenced by QZipReader::fileData(), QZipPrivate::fillFileInfo(), readMSDosDate(), and QZipReaderPrivate::scanFiles().
Definition at line 100 of file qzip.cpp.
Referenced by QZipReader::fileData(), and QZipReaderPrivate::scanFiles().
Definition at line 133 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry().
Definition at line 105 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry(), QZipWriter::close(), and CentralFileHeader::toLocalHeader().
Definition at line 113 of file qzip.cpp.
Referenced by QZipWriterPrivate::addEntry(), and QZipWriter::close().