ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quazipdir.cpp File Reference
#include "quazipdir.h"
#include <QSet>
#include <QSharedData>
+ Include dependency graph for quazipdir.cpp:

Go to the source code of this file.

Functions

QuaZipFileInfo64 QuaZipDir_getFileInfo (QuaZip *zip, bool *ok, const QString &relativeName, bool isReal)
 
static void QuaZipDir_convertInfoList (const QList< QuaZipFileInfo64 > &from, QList< QuaZipFileInfo64 > &to)
 
static void QuaZipDir_convertInfoList (const QList< QuaZipFileInfo64 > &from, QStringList &to)
 
static void QuaZipDir_convertInfoList (const QList< QuaZipFileInfo64 > &from, QList< QuaZipFileInfo > &to)
 

Function Documentation

static void QuaZipDir_convertInfoList ( const QList< QuaZipFileInfo64 > &  from,
QList< QuaZipFileInfo64 > &  to 
)
static

Definition at line 188 of file quazipdir.cpp.

190 {
191  to = from;
192 }
static void QuaZipDir_convertInfoList ( const QList< QuaZipFileInfo64 > &  from,
QStringList &  to 
)
static

Definition at line 194 of file quazipdir.cpp.

196 {
197  to.clear();
198  for (QList<QuaZipFileInfo64>::const_iterator i = from.constBegin();
199  i != from.constEnd();
200  ++i) {
201  to.append(i->name);
202  }
203 }
static void QuaZipDir_convertInfoList ( const QList< QuaZipFileInfo64 > &  from,
QList< QuaZipFileInfo > &  to 
)
static

Definition at line 205 of file quazipdir.cpp.

207 {
208  to.clear();
209  for (QList<QuaZipFileInfo64>::const_iterator i = from.constBegin();
210  i != from.constEnd();
211  ++i) {
212  QuaZipFileInfo info32;
213  i->toQuaZipFileInfo(info32);
214  to.append(info32);
215  }
216 }
Information about a file inside archive.
QuaZipFileInfo64 QuaZipDir_getFileInfo ( QuaZip zip,
bool *  ok,
const QString &  relativeName,
bool  isReal 
)

Definition at line 165 of file quazipdir.cpp.

References QuaZipFileInfo64::compressedSize, QuaZipFileInfo64::crc, QuaZipFileInfo64::diskNumberStart, QuaZipFileInfo64::externalAttr, QuaZipFileInfo64::flags, QuaZip::getCurrentFileInfo(), QuaZipFileInfo64::internalAttr, QuaZipFileInfo64::method, QuaZipFileInfo64::name, QuaZipFileInfo64::uncompressedSize, QuaZipFileInfo64::versionCreated, and QuaZipFileInfo64::versionNeeded.

168 {
169  QuaZipFileInfo64 info;
170  if (isReal) {
171  *ok = zip->getCurrentFileInfo(&info);
172  } else {
173  *ok = true;
174  info.compressedSize = 0;
175  info.crc = 0;
176  info.diskNumberStart = 0;
177  info.externalAttr = 0;
178  info.flags = 0;
179  info.internalAttr = 0;
180  info.method = 0;
181  info.uncompressedSize = 0;
182  info.versionCreated = info.versionNeeded = 0;
183  }
184  info.name = relativeName;
185  return info;
186 }
quint16 diskNumberStart
Disk number start.
quint16 versionCreated
Version created by.
quint32 externalAttr
External file attributes.
quint16 versionNeeded
Version needed to extract.
quint32 crc
CRC.
quint64 compressedSize
Compressed file size.
Information about a file inside archive (with zip64 support).
quint16 method
Compression method.
quint64 uncompressedSize
Uncompressed file size.
quint16 flags
General purpose flags.
QString name
File name.
quint16 internalAttr
Internal file attributes.
bool getCurrentFileInfo(QuaZipFileInfo *info) const
Retrieves information about the current file.
Definition: quazip.cpp:492

+ Here is the call graph for this function: