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

Method HaveMapEditsToUpload

libs/editor/osm_editor.cpp:565–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565bool Editor::HaveMapEditsToUpload(MwmId const & mwmId) const
566{
567 if (!mwmId.IsAlive())
568 return false;
569
570 auto const features = m_features.Get();
571
572 auto const found = features->find(mwmId);
573 if (found != features->cend())
574 {
575 for (auto const & index : found->second)
576 if (NeedsUpload(index.second.m_uploadStatus))
577 return true;
578 }
579 return false;
580}
581
582void Editor::UploadChanges(string const & oauthToken, ChangesetTags tags, FinishUploadCallback callback)
583{

Callers 2

HasUnsavedEditsMethod · 0.80

Calls 5

NeedsUploadFunction · 0.85
IsAliveMethod · 0.45
GetMethod · 0.45
findMethod · 0.45
cendMethod · 0.45

Tested by 1