QuaZIP quazip-0-5-1

- Main Page
- Related Pages
- Classes
- Files
- Directories

- File List

quazipdir.h

    00001 #ifndef QUAZIP_QUAZIPDIR_H
    00002 #define QUAZIP_QUAZIPDIR_H
    00003
    00004 class QuaZipDirPrivate;
    00005
    00006 #include "quazip.h"
    00007 #include "quazipfileinfo.h"
    00008 #include <QDir>
    00009 #include <QList>
    00010 #include <QSharedDataPointer>
    00011
    00013
    00029 class QUAZIP_EXPORT QuaZipDir {
    00030 private:
    00031     QSharedDataPointer<QuaZipDirPrivate> d;
    00032 public:
    00034     QuaZipDir(const QuaZipDir &that);
    00036
    00040     QuaZipDir(QuaZip *zip, const QString &dir = QString());
    00042     ~QuaZipDir();
    00044     bool operator==(const QuaZipDir &that);
    00046
    00050     inline bool operator!=(const QuaZipDir &that) {return !operator==(that);}
    00052
    00056     QuaZipDir& operator=(const QuaZipDir &that);
    00058     QString operator[](int pos) const;
    00060     QuaZip::CaseSensitivity caseSensitivity() const;
    00062
    00071     bool cd(const QString &dirName);
    00073     bool cdUp();
    00075     uint count() const;
    00077
    00080     QString dirName() const;
    00082
    00089     QList<QuaZipFileInfo> entryInfoList(const QStringList &nameFilters,
    00090         QDir::Filters filters = QDir::NoFilter,
    00091         QDir::SortFlags sort = QDir::NoSort) const;
    00093
    00098     QList<QuaZipFileInfo> entryInfoList(QDir::Filters filters = QDir::NoFilter,
    00099         QDir::SortFlags sort = QDir::NoSort) const;
    00101
    00105     QStringList entryList(const QStringList &nameFilters,
    00106         QDir::Filters filters = QDir::NoFilter,
    00107         QDir::SortFlags sort = QDir::NoSort) const;
    00109
    00114     QStringList entryList(QDir::Filters filters = QDir::NoFilter,
    00115         QDir::SortFlags sort = QDir::NoSort) const;
    00117
    00123     bool exists(const QString &fileName) const;
    00125     bool exists() const;
    00127
    00130     QString filePath(const QString &fileName) const;
    00132     QDir::Filters filter();
    00134
    00137     bool isRoot() const;
    00139     QStringList nameFilters() const;
    00141
    00145     QString path() const;
    00147     QString relativeFilePath(const QString &fileName) const;
    00149     void setCaseSensitivity(QuaZip::CaseSensitivity caseSensitivity);
    00151     void setFilter(QDir::Filters filters);
    00153     void setNameFilters(const QStringList &nameFilters);
    00155
    00164     void setPath(const QString &path);
    00166     void setSorting(QDir::SortFlags sort);
    00168     QDir::SortFlags sorting() const;
    00169 };
    00170
    00171 #endif // QUAZIP_QUAZIPDIR_H