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

Method getParentFromComicFolderId

YACReaderLibrary/db_helper.cpp:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125qulonglong DBHelper::getParentFromComicFolderId(qulonglong libraryId, qulonglong id)
126{
127 QString libraryPath = DBHelper::getLibraries().getPath(libraryId);
128 QString connectionName = "";
129 Folder f;
130 {
131 QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath));
132
133 f = DBHelper::loadFolder(id, db);
134 connectionName = db.connectionName();
135 }
136
137 QSqlDatabase::removeDatabase(connectionName);
138 return f.parentId;
139}
140ComicDB DBHelper::getComicInfo(qulonglong libraryId, qulonglong id)
141{
142 QString libraryPath = DBHelper::getLibraries().getPath(libraryId);

Callers

nothing calls this directly

Calls 1

getPathMethod · 0.80

Tested by

no test coverage detected