MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / openAll

Method openAll

src/database/WizDatabaseManager.cpp:72–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool WizDatabaseManager::openAll()
73{
74 // first, open private db
75 if (!open()) {
76 TOLOG("open user private database failed");
77 return false;
78 }
79
80 // second, get groups info
81 CWizGroupDataArray arrayGroup;
82 if (!m_dbPrivate->getAllGroupInfo(arrayGroup)) {
83 TOLOG("Failed to get user group info");
84 return true;
85 }
86
87 // third, open groups one by one
88 CWizGroupDataArray::const_iterator it;
89 for (it = arrayGroup.begin(); it != arrayGroup.end(); it++) {
90 WIZGROUPDATA group = *it;
91 if (!open(group.strGroupGUID)) {
92 TOLOG1("failed to open group: %1", group.strGroupName);
93 }
94 }
95
96 return true;
97}
98
99bool WizDatabaseManager::isOpened(const QString& strKbGUID)
100{

Callers 1

mainCoreFunction · 0.80

Calls 4

TOLOGFunction · 0.85
getAllGroupInfoMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected