MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / getValidFilesFromArchive

Method getValidFilesFromArchive

gui/qt/sendinghandler.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53QStringList SendingHandler::getValidFilesFromArchive(const QString& archivePath) {
54 if (!m_tempDir.isValid()) {
55 QMessageBox::critical(Q_NULLPTR, tr("Transfer error"), tr("Could not create the temporary directory to extract the archive.\nFile: ") + archivePath);
56 return {};
57 }
58
59 bundleList.clear();
60 extractor(archivePath.toStdString().c_str(), m_tempDir.path().toStdString().c_str(), checkValidFile);
61 // TODO: check bundleList size, alert if 0
62 return bundleList;
63}
64
65SendingHandler::SendingHandler(QObject *parent, QPushButton *cancelBtn, QProgressBar *bar, QTableWidget *table) : QObject{parent} {
66 m_progressBar = bar;

Callers

nothing calls this directly

Calls 2

extractorFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected