MCPcopy Create free account
hub / github.com/comaps/comaps / Subscribe

Method Subscribe

libs/storage/storage.cpp:932–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932int Storage::Subscribe(ChangeCountryFunction change, ProgressFunction progress)
933{
934 CHECK_THREAD_CHECKER(m_threadChecker, ());
935
936 int const id = ++m_currentSlotId;
937 m_observers.push_back({std::move(change), std::move(progress), id});
938 return id;
939}
940
941void Storage::Unsubscribe(int slotId)
942{

Callers 15

mainFunction · 0.45
FrameworkMethod · 0.45
UpdateDialogMethod · 0.45
ScreenshoterMethod · 0.45
DownloadCountryMethod · 0.45
InitStorageFunction · 0.45
InitStorageFunction · 0.45
InitStorageFunction · 0.45
DownloadGroupFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 1

push_backMethod · 0.45

Tested by 9

InitStorageFunction · 0.36
InitStorageFunction · 0.36
InitStorageFunction · 0.36
DownloadGroupFunction · 0.36
UNIT_TESTFunction · 0.36
CountryStatusCheckerMethod · 0.36
UNIT_CLASS_TESTFunction · 0.36