Ditto 4.13.1
 
Loading...
Searching...
No Matches
AuthenticationStatusObserver.hpp
1#ifndef DITTO_AUTHENTICATION_STATUS_OBSERVER_H
2#define DITTO_AUTHENTICATION_STATUS_OBSERVER_H
3
4#include "AuthenticationStatus.hpp"
5#include "Observer.hpp"
6
7#include <functional>
8#include <memory>
9
10namespace ditto {
11class Authenticator;
12
13class AuthenticationStatusObserver
14 : public Observer,
15 public std::enable_shared_from_this<AuthenticationStatusObserver> {
16 friend class Authenticator;
17
18private:
19 void on_stop() override;
20 std::weak_ptr<Authenticator> authenticator;
21 std::function<void(AuthenticationStatus status)> callback;
22 AuthenticationStatusObserver(
23 std::shared_ptr<Authenticator> authenticator,
24 std::function<void(AuthenticationStatus status)> callback);
25};
26} // namespace ditto
27
28#endif
Provides access to authentication information and methods for logging on to Ditto Cloud....
Definition Authenticator.hpp:34
Observer()
Constructs a new Observer.
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19
Provides info about the authentication status.
Definition AuthenticationStatus.hpp:10