Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2019-04-01 13:17:00 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-04-02 11:21:15 +0300
commit74b767ede5213b43023458661446c24359d6e94e (patch)
tree1ac019ba40d7608986d2066d0c0415ef90e40c3f /map/bookmark_catalog.hpp
parent81559c4c2a88e93fde15f60b8dc20b8d0750c278 (diff)
Fixed auth error processing
Diffstat (limited to 'map/bookmark_catalog.hpp')
-rw-r--r--map/bookmark_catalog.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/map/bookmark_catalog.hpp b/map/bookmark_catalog.hpp
index fbab763810..bb8008d4ac 100644
--- a/map/bookmark_catalog.hpp
+++ b/map/bookmark_catalog.hpp
@@ -50,6 +50,7 @@ public:
uint32_t maxTagsCount)>;
using CustomProperties = std::vector<CustomProperty>;
using CustomPropertiesCallback = platform::SafeCallback<void(bool success, CustomProperties const &)>;
+ using InvalidTokenHandler = std::function<void()>;
void RegisterByServerId(std::string const & id);
void UnregisterByServerId(std::string const & id);
@@ -116,7 +117,11 @@ public:
UploadSuccessCallback && uploadSuccessCallback,
UploadErrorCallback && uploadErrorCallback);
+ // Handler can be called from non-UI thread.
+ void SetInvalidTokenHandler(InvalidTokenHandler && onInvalidToken);
+
private:
std::map<std::string, std::string> m_downloadingIds;
std::set<std::string> m_registeredInCatalog;
+ InvalidTokenHandler m_onInvalidToken;
};