Ditto 4.5.1
Loading...
Searching...
No Matches
AuthenticationStatusObserver.hpp
1#ifndef _DITTO_AUTHENTICATION_STATUS_OBSERVER_
2#define _DITTO_AUTHENTICATION_STATUS_OBSERVER_
3
4#include "AuthenticationStatus.hpp"
5#include "Observer.hpp"
6
7#include <functional>
8#include <memory>
9
10namespace ditto {
11class Authenticator;
12
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;
23 std::shared_ptr<Authenticator> authenticator,
24 std::function<void(AuthenticationStatus status)> callback);
25};
26} // namespace ditto
27
28#endif
Definition AuthenticationStatusObserver.hpp:15
Provides access to authentication information and methods for logging on to Ditto Cloud....
Definition Authenticator.hpp:27
An observation token returned by any observation API in the Ditto SDK. Retain this object to continue...
Definition Observer.hpp:11
Provides info about the authentication status.
Definition AuthenticationStatus.hpp:10