|  | 
| static bool | compressFile (QString fileCompressed, QString file) | 
|  | Compress a single file.  More... 
 | 
|  | 
| static bool | compressFiles (QString fileCompressed, QStringList files) | 
|  | Compress a list of files.  More... 
 | 
|  | 
| static bool | compressDir (QString fileCompressed, QString dir=QString(), bool recursive=true) | 
|  | Compress a whole directory.  More... 
 | 
|  | 
| static bool | compressDir (QString fileCompressed, QString dir, bool recursive, QDir::Filters filters) | 
|  | Compress a whole directory.  More... 
 | 
|  | 
| static QString | extractFile (QString fileCompressed, QString fileName, QString fileDest=QString()) | 
|  | Extract a single file.  More... 
 | 
|  | 
| static QStringList | extractFiles (QString fileCompressed, QStringList files, QString dir=QString()) | 
|  | Extract a list of files.  More... 
 | 
|  | 
| static QStringList | extractDir (QString fileCompressed, QString dir=QString()) | 
|  | Extract a whole archive.  More... 
 | 
|  | 
| static QStringList | getFileList (QString fileCompressed) | 
|  | Get the file list.  More... 
 | 
|  | 
| static QString | extractFile (QIODevice *ioDevice, QString fileName, QString fileDest=QString()) | 
|  | Extract a single file.  More... 
 | 
|  | 
| static QStringList | extractFiles (QIODevice *ioDevice, QStringList files, QString dir=QString()) | 
|  | Extract a list of files.  More... 
 | 
|  | 
| static QStringList | extractDir (QIODevice *ioDevice, QString dir=QString()) | 
|  | Extract a whole archive.  More... 
 | 
|  | 
| static QStringList | getFileList (QIODevice *ioDevice) | 
|  | Get the file list.  More... 
 | 
|  | 
Utility class for typical operations. 
This class contains a number of useful static functions to perform simple operations, such as mass ZIP packing or extraction. 
  
  | 
        
          | bool JlCompress::compressDir | ( | QString | fileCompressed, |  
          |  |  | QString | dir, |  
          |  |  | bool | recursive, |  
          |  |  | QDir::Filters | filters |  
          |  | ) |  |  |  | static | 
 
Compress a whole directory. 
Unless filters are specified explicitly, packs only regular non-hidden files (and subdirs, if recursive is true). If filters are specified, they are OR-combined with QDir::AllDirs|QDir::NoDotAndDotDot when searching for dirs and with QDir::Files when searching for files.
- Parameters
- 
  
    | fileCompressed | path to the resulting archive |  | dir | path to the directory being compressed |  | recursive | if true, then the subdirectories are packed as well |  | filters | what to pack, filters are applied both when searching for subdirs (if packing recursively) and when looking for files to pack |  
 
- Returns
- true on success, false otherwise 
References QuaZip::close(), QuaZip::getZipError(), QuaZip::mdCreate, and QuaZip::open().