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
quazip.cpp File Reference
#include <QFile>
#include <QFlags>
#include <QHash>
#include "quazip.h"
+ Include dependency graph for quazip.cpp:

Go to the source code of this file.

Data Structures

class  QuaZipPrivate
 All the internal stuff for the QuaZip class. More...
 

Functions

template<typename TFileInfo >
TFileInfo QuaZip_getFileInfo (QuaZip *zip, bool *ok)
 
template<>
QuaZipFileInfo QuaZip_getFileInfo (QuaZip *zip, bool *ok)
 
template<>
QuaZipFileInfo64 QuaZip_getFileInfo (QuaZip *zip, bool *ok)
 
template<>
QString QuaZip_getFileInfo (QuaZip *zip, bool *ok)
 

Function Documentation

template<typename TFileInfo >
TFileInfo QuaZip_getFileInfo ( QuaZip zip,
bool *  ok 
)

Definition at line 663 of file quazip.cpp.

References QuaZip::getCurrentFileInfo(), and QuaZip::getCurrentFileName().

664 {
665  QuaZipFileInfo info;
666  *ok = zip->getCurrentFileInfo(&info);
667  return info;
668 }
Information about a file inside archive.
bool getCurrentFileInfo(QuaZipFileInfo *info) const
Retrieves information about the current file.
Definition: quazip.cpp:492

+ Here is the call graph for this function:

template<>
QuaZipFileInfo QuaZip_getFileInfo ( QuaZip zip,
bool *  ok 
)

Definition at line 663 of file quazip.cpp.

References QuaZip::getCurrentFileInfo().

664 {
665  QuaZipFileInfo info;
666  *ok = zip->getCurrentFileInfo(&info);
667  return info;
668 }
Information about a file inside archive.
bool getCurrentFileInfo(QuaZipFileInfo *info) const
Retrieves information about the current file.
Definition: quazip.cpp:492

+ Here is the call graph for this function:

template<>
QuaZipFileInfo64 QuaZip_getFileInfo ( QuaZip zip,
bool *  ok 
)

Definition at line 671 of file quazip.cpp.

References QuaZip::getCurrentFileInfo().

672 {
673  QuaZipFileInfo64 info;
674  *ok = zip->getCurrentFileInfo(&info);
675  return info;
676 }
Information about a file inside archive (with zip64 support).
bool getCurrentFileInfo(QuaZipFileInfo *info) const
Retrieves information about the current file.
Definition: quazip.cpp:492

+ Here is the call graph for this function:

template<>
QString QuaZip_getFileInfo ( QuaZip zip,
bool *  ok 
)

Definition at line 679 of file quazip.cpp.

References QuaZip::getCurrentFileName().

680 {
681  QString name = zip->getCurrentFileName();
682  *ok = !name.isEmpty();
683  return name;
684 }
QString getCurrentFileName() const
Returns the current file name.
Definition: quazip.cpp:551

+ Here is the call graph for this function: