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

Method sendFiles

gui/qt/sendinghandler.cpp:231–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void SendingHandler::sendFiles(const QStringList &fileNames, int location) {
232 QStringList list = fileNames;
233
234 if (guiSend || guiDebug || !list.size()) {
235 return;
236 }
237
238 guiSend = true;
239 m_dirs.clear();
240
241 foreach(const QString &fileName, fileNames) {
242 QFileInfo fileInfo(fileName);
243 QString fileDir = fileInfo.absolutePath();
244 if (!m_dirs.contains(fileDir)) {
245 m_dirs.append(fileDir);
246 checkDirForEquateFiles(fileDir);
247 }
248 addFile(fileName, true);
249 if (pathHasBundleExtension(fileName)) {
250 list.removeOne(fileName);
251 list.append(getValidFilesFromArchive(fileName));
252 }
253 }
254
255 if (m_progressBar) {
256 m_progressBar->setVisible(true);
257 m_btnCancelTransfer->setVisible(true);
258 m_progressBar->setMaximum(list.size());
259 }
260
261 emit send(list, location);
262}
263
264void SendingHandler::setLoadEquates(bool state) {
265 m_sendEquates = state;

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected