Provides ZIP archive navigation. More..
#include <quazipdir.h>
Detailed Description
Provides ZIP archive navigation.
This class is modelled after QDir, and is designed to provide similar features for ZIP archives.
The only significant difference from QDir is that the root path is not '/', but an empty string since that's how the file paths are stored in the archive. However, QuaZipDir understands the paths starting with '/'. It is important in a few places:
Note that since ZIP uses '/' on all platforms, the ' separator is not supported.
Constructor & Destructor Documentation
Constructs a QuaZipDir instance pointing to the specified directory.
If dir is not specified, points to the root of the archive. The same happens if the dir is '/'.
Member Function Documentation
operator!=
operator
Changes the 'current' directory.
If the path starts with '/', it is interpreted as an absolute path from the root of the archive. Otherwise, it is interpreted as a path relative to the current directory as was set by the previous cd() or the constructor.
Note that the subsequent path() call will not return a path starting with '/' in all cases.
References cd(), QString::chop(), QList::constBegin(), QByteArray::constData(), QString::contains(), dirName(), QList::end(), QString::endsWith(), exists(), isRoot(), path(), QString::split(), QString::startsWith(), and QString::toUtf8().
Referenced by cd(), and cdUp().
Returns the current directory name.
The name doesn't include the path.
References QDir::dirName().
Referenced by cd().
Returns the list of the entries in the directory.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |