MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / onArchiveReady

Method onArchiveReady

src/subprojects/AutoEqIntegration/GzipDownloader.cpp:62–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void GzipDownloader::onArchiveReady()
63{
64 if(!isActive()) {
65 return;
66 }
67
68 if(networkReply->error() != QNetworkReply::NoError)
69 {
70 emit errorOccurred(networkReply->errorString());
71 cleanup();
72 }
73 else
74 {
75 auto dat = networkReply->readAll();
76 downloadedFile.write(dat);
77 downloadedFile.close();
78
79 emit decompressionStarted();
80
81 extractThread = new ExtractionThread(extractionPath.path(), downloadedFile.fileName(), this);
82 connect(extractThread, &ExtractionThread::onFinished, this, &GzipDownloader::onArchiveExtracted);
83 extractThread->start();
84 }
85}
86
87void GzipDownloader::onArchiveExtracted(const QString &errorString)
88{

Callers

nothing calls this directly

Calls 6

isActiveFunction · 0.85
connectFunction · 0.85
startMethod · 0.80
errorMethod · 0.45
writeMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected