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

Function rootFolder

YACReaderLibrary/library_creator.cpp:26–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using namespace YACReader;
25
26Folder rootFolder(QSqlDatabase &db)
27{
28 QSqlQuery selectQuery(db);
29 selectQuery.prepare("SELECT * FROM folder WHERE id = 1");
30 selectQuery.exec();
31
32 auto root = Folder(1, 1, "root", "/");
33
34 if (!selectQuery.next()) {
35
36 root.type = YACReader::FileType::Comic;
37 return root;
38 }
39
40 root.type = selectQuery.value("type").value<YACReader::FileType>();
41
42 return root;
43}
44
45//--------------------------------------------------------------------------------
46LibraryCreator::LibraryCreator(QSettings *settings)

Callers 2

updateFolderMethod · 0.85
runMethod · 0.85

Calls 3

execMethod · 0.80
FolderClass · 0.70
nextMethod · 0.45

Tested by

no test coverage detected