MCPcopy Create free account
hub / github.com/YACReader/yacreader / process

Method process

YACReaderLibrary/comics_remover.cpp:13–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void ComicsRemover::process()
14{
15 QString currentComicPath;
16 QListIterator<QModelIndex> i(indexList);
17 QListIterator<QString> i2(paths);
18 i.toBack();
19 i2.toBack();
20
21 while (i.hasPrevious() && i2.hasPrevious()) {
22 QModelIndex mi = i.previous();
23 currentComicPath = i2.previous();
24 if (QFile::moveToTrash(currentComicPath))
25 emit remove(mi.row());
26 else if (QFile::remove(currentComicPath))
27 emit remove(mi.row());
28 else
29 emit removeError();
30 }
31
32 emit finished();
33 emit removedItemsFromFolder(parentId);
34}
35
36FoldersRemover::FoldersRemover(QModelIndexList &il, QList<QString> &ps, QObject *parent)
37 : QObject(parent), indexList(il), paths(ps)

Callers 11

mainFunction · 0.45
startFunction · 0.45
createLibraryFunction · 0.45
updateLibraryFunction · 0.45
addLibraryFunction · 0.45
removeLibraryFunction · 0.45
listLibrariesFunction · 0.45
setPortFunction · 0.45
rescanXmlInfoFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

rowMethod · 0.45

Tested by

no test coverage detected