| 563 | } |
| 564 | |
| 565 | bool 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 | |
| 582 | void Editor::UploadChanges(string const & oauthToken, ChangesetTags tags, FinishUploadCallback callback) |
| 583 | { |