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

Method getSiblings

YACReaderLibrary/db_helper.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156QList<ComicDB> DBHelper::getSiblings(qulonglong libraryId, qulonglong parentId)
157{
158 QString libraryPath = DBHelper::getLibraries().getPath(libraryId);
159 QString connectionName = "";
160 QList<ComicDB> comics;
161 {
162 QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath));
163 comics = DBHelper::getSortedComicsFromParent(parentId, db);
164 connectionName = db.connectionName();
165 }
166
167 QSqlDatabase::removeDatabase(connectionName);
168 return comics;
169}
170
171QString DBHelper::getFolderName(qulonglong libraryId, qulonglong id)
172{

Callers

nothing calls this directly

Calls 1

getPathMethod · 0.80

Tested by

no test coverage detected