19#ifndef CPPREALM_BRIDGE_SYNC_SESSION_HPP
20#define CPPREALM_BRIDGE_SYNC_SESSION_HPP
25#include <system_error>
29 namespace interno::bridge {
35 estado
da classe enumeração {
39 wait_for_access_token,
43 classe enum connection_state {
50 enumeração state state()
const;
53 enumeração connection_state connection_state()
const;
58 vazio wait_for_upload_completion(std::function <
vazio(
status)>&& chamada de resposta de resposta );
62 vazio wait_for_download_completion(std::function <
vazio(
status)>&& chamada de resposta de resposta );
67 std::future<void> wait_for_upload_completion();
70 std::future<void> wait_for_download_completion();
109 uint64_t
observe_connection_change(std::function <
null(
enumeração connection_state old_state ,
enumeração connection_state new_state)>&& chamada de resposta de resposta );
117 operador std::weag_ptr<SyncSession>();
119 std::weag_ptr<SyncSession> m_session;
Definição: sync_session.hpp:33
void resume()
Definition: sync_session.cpp:108
uint64_t observe_connection_change(std::function < null(enumeração connection_state old_state, enumeração connection_state new_state)> &&callback)
Definition: sync_session.cpp:124
void unregister_connection_change_observer(uint64_t token)
Definition: sync_session.cpp:134
pausa vazia()
Definition: sync_session.cpp:100
null reconectar()
Definition: sync_session.cpp:116