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

Method resetGroups

src/sync/WizKMSync.cpp:433–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433bool WizKMSyncThread::resetGroups()
434{
435 if (!prepareToken())
436 return false;
437
438 WizKMAccountsServer server;
439 server.setUserInfo(m_info);
440 server.setEvents(m_pEvents);
441
442 CWizBizDataArray bizs;
443 if (!server.getBizList(bizs))
444 return false;
445
446 m_db.onDownloadBizs(bizs);
447
448 CWizGroupDataArray groups;
449 if (!server.getGroupList(groups))
450 return false;
451
452 m_db.onDownloadGroups(groups);
453
454 return true;
455}
456
457
458bool WizKMSyncThread::needQuickSync()

Callers

nothing calls this directly

Calls 6

setEventsMethod · 0.80
getBizListMethod · 0.80
onDownloadBizsMethod · 0.80
getGroupListMethod · 0.80
onDownloadGroupsMethod · 0.80
setUserInfoMethod · 0.45

Tested by

no test coverage detected