| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
wireshark_zip_helper.h
Go to the documentation of this file.
1
11
12#ifndef WS_ZIP_HELPER_H
13#define WS_ZIP_HELPER_H
14
15#include "config.h"
16
17#include <QDir>
18
19#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
20
21#ifdef HAVE_MINIZIP
22#include "minizip/zip.h"
23#else
24#include "minizip-ng/zip.h"
25#endif
26
27 class WiresharkZipHelper
28{
29 public:
30 static bool zip(QString zipFile, QStringList files, QString relativeTo = QString());
31 static bool unzip(QString zipFile, QString directory, bool (*fileCheck)(QString fileName, int fileSize) = Q_NULLPTR, QString (*cleanName)(QString name) = Q_NULLPTR);
32
33 protected:
34 static void addFileToZip(zipFile zf, QString filepath, QString fileInZip);
35
36};
37
38#endif
39
40#endif // WS_ZIP_HELPER_H