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

Method getPaths

YACReaderLibrary/db/comic_model.cpp:501–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501QStringList ComicModel::getPaths(const QString &_source)
502{
503 QStringList paths;
504 QList<ComicItem *>::ConstIterator itr;
505 for (itr = _data.constBegin(); itr != _data.constEnd(); itr++) {
506 QString hash = (*itr)->data(ComicModel::Hash).toString();
507 paths << LibraryPaths::coverPath(_source, hash);
508 }
509
510 return paths;
511}
512
513#define COMIC_MODEL_QUERY_FIELDS "ci.number,ci.title,c.fileName,ci.numPages,c.id,c.parentId,c.path,ci.hash,ci.read,ci.currentPage,ci.rating,ci.hasBeenOpened,ci.date,ci.added,ci.type,ci.lastTimeOpened,ci.series,ci.volume,ci.storyArc"
514

Callers 1

setModelMethod · 0.80

Calls 2

toStringMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected