Watches directories for new archive files and optionally auto-decompresses them
Example usage:
watcher.setAutoDecompress(true);
watcher.setOutputDirectory("/extracted");
[](const QString &path) {
qDebug() << "Found archive:" << path;
});
[](const QString &archive, const QString &output, bool success) {
qDebug() << "Extracted" << archive << "to" << output
<< (success ? "OK" : "FAILED");
});
watcher.watchDirectory("/downloads");
void extractionComplete(const QString &archivePath, const QString &outputPath, bool success, const QString &errorString)
void archiveDetected(const QString &archivePath, QGCCompression::Format format)
Definition at line 36 of file QGCArchiveWatcher.h.