Qt 4.8
Public Functions | Public Variables | List of all members
QZipReader::FileInfo Class Reference

Represents one entry in the zip table of contents. More...

#include <qzipreader_p.h>

Public Functions

 FileInfo ()
 
 FileInfo (const FileInfo &other)
 
bool isValid () const
 
FileInfooperator= (const FileInfo &other)
 
 ~FileInfo ()
 

Public Variables

uint crc32
 The calculated checksum as a crc32 type. More...
 
void * d
 
QString filePath
 The full filepath inside the archive. More...
 
uint isDir: 1
 A boolean type indicating if the entry is a directory. More...
 
uint isFile: 1
 A boolean type, if it is one this entry is a file. More...
 
uint isSymLink: 1
 A boolean type, if it is one this entry is symbolic link. More...
 
QDateTime lastModified
 
QFile::Permissions permissions
 
qint64 size
 The total size of the unpacked content. More...
 

Detailed Description

Represents one entry in the zip table of contents.

Warning
This function is not part of the public interface.

Definition at line 79 of file qzipreader_p.h.

Constructors and Destructors

◆ FileInfo() [1/2]

QZipReader::FileInfo::FileInfo ( )

Definition at line 360 of file qzip.cpp.

361  : isDir(false), isFile(false), isSymLink(false), crc32(0), size(0)
362 {
363 }
uint isFile
A boolean type, if it is one this entry is a file.
Definition: qzipreader_p.h:88
qint64 size
The total size of the unpacked content.
Definition: qzipreader_p.h:92
uint isSymLink
A boolean type, if it is one this entry is symbolic link.
Definition: qzipreader_p.h:89
uint crc32
The calculated checksum as a crc32 type.
Definition: qzipreader_p.h:91
uint isDir
A boolean type indicating if the entry is a directory.
Definition: qzipreader_p.h:87

◆ FileInfo() [2/2]

QZipReader::FileInfo::FileInfo ( const FileInfo other)

Definition at line 369 of file qzip.cpp.

370 {
371  operator=(other);
372 }
FileInfo & operator=(const FileInfo &other)
Definition: qzip.cpp:374

◆ ~FileInfo()

QZipReader::FileInfo::~FileInfo ( )

Definition at line 365 of file qzip.cpp.

366 {
367 }

Functions

◆ isValid()

bool QZipReader::FileInfo::isValid ( ) const

Definition at line 387 of file qzip.cpp.

388 {
389  return isDir || isFile || isSymLink;
390 }
uint isFile
A boolean type, if it is one this entry is a file.
Definition: qzipreader_p.h:88
uint isSymLink
A boolean type, if it is one this entry is symbolic link.
Definition: qzipreader_p.h:89
uint isDir
A boolean type indicating if the entry is a directory.
Definition: qzipreader_p.h:87

◆ operator=()

QZipReader::FileInfo & QZipReader::FileInfo::operator= ( const FileInfo other)

Definition at line 374 of file qzip.cpp.

Referenced by FileInfo().

375 {
376  filePath = other.filePath;
377  isDir = other.isDir;
378  isFile = other.isFile;
379  isSymLink = other.isSymLink;
380  permissions = other.permissions;
381  crc32 = other.crc32;
382  size = other.size;
383  lastModified = other.lastModified;
384  return *this;
385 }
uint isFile
A boolean type, if it is one this entry is a file.
Definition: qzipreader_p.h:88
QDateTime lastModified
Definition: qzipreader_p.h:93
QString filePath
The full filepath inside the archive.
Definition: qzipreader_p.h:86
QFile::Permissions permissions
Definition: qzipreader_p.h:90
qint64 size
The total size of the unpacked content.
Definition: qzipreader_p.h:92
uint isSymLink
A boolean type, if it is one this entry is symbolic link.
Definition: qzipreader_p.h:89
uint crc32
The calculated checksum as a crc32 type.
Definition: qzipreader_p.h:91
uint isDir
A boolean type indicating if the entry is a directory.
Definition: qzipreader_p.h:87

Properties

◆ crc32

FileInfo::crc32

The calculated checksum as a crc32 type.

Definition at line 91 of file qzipreader_p.h.

Referenced by QZipWriterPrivate::addEntry(), QZipPrivate::fillFileInfo(), and operator=().

◆ d

FileInfo::d
Warning
This function is not part of the public interface. private pointer.

Definition at line 94 of file qzipreader_p.h.

Referenced by QZipReader::QZipReader().

◆ filePath

FileInfo::filePath

The full filepath inside the archive.

Definition at line 86 of file qzipreader_p.h.

Referenced by QZipReader::extractAll(), QZipPrivate::fillFileInfo(), and operator=().

◆ isDir

FileInfo::isDir

A boolean type indicating if the entry is a directory.

Definition at line 87 of file qzipreader_p.h.

Referenced by QZipReader::extractAll(), QZipPrivate::fillFileInfo(), isValid(), and operator=().

◆ isFile

FileInfo::isFile

A boolean type, if it is one this entry is a file.

Definition at line 88 of file qzipreader_p.h.

Referenced by QZipReader::extractAll(), QZipPrivate::fillFileInfo(), isValid(), and operator=().

◆ isSymLink

FileInfo::isSymLink

A boolean type, if it is one this entry is symbolic link.

Definition at line 89 of file qzipreader_p.h.

Referenced by QZipReader::extractAll(), QZipPrivate::fillFileInfo(), isValid(), and operator=().

◆ lastModified

QDateTime QZipReader::FileInfo::lastModified

Definition at line 93 of file qzipreader_p.h.

Referenced by QZipPrivate::fillFileInfo(), and operator=().

◆ permissions

QFile::Permissions QZipReader::FileInfo::permissions

◆ size

FileInfo::size

The total size of the unpacked content.

Definition at line 92 of file qzipreader_p.h.

Referenced by QZipPrivate::fillFileInfo(), and operator=().


The documentation for this class was generated from the following files: