ObjectBox C and C++ API  4.0.3
obx::SyncClientListener Class Reference

Listens to all possible sync events. See each base abstract class for detailed information. More...

#include <objectbox-sync.hpp>

Inheritance diagram for obx::SyncClientListener:
Inheritance graph

Additional Inherited Members

- Public Types inherited from obx::SyncClientTimeListener
using TimePoint = std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds >
 
- Public Member Functions inherited from obx::SyncClientLoginListener
virtual ~SyncClientLoginListener ()=default
 
virtual void loggedIn () noexcept=0
 Called on a successful login. At this point the connection to the sync destination was established and entered an operational state, in which data can be sent both ways. More...
 
virtual void loginFailed (OBXSyncCode) noexcept=0
 Called on a login failure with a result code specifying the issue. More...
 
- Public Member Functions inherited from obx::SyncClientCompletionListener
virtual ~SyncClientCompletionListener ()=default
 
virtual void updatesCompleted () noexcept=0
 Called each time a sync completes, in the sense that the client has caught up with the current server state. Or in other words, when the client is "up-to-date". More...
 
- Public Member Functions inherited from obx::SyncClientConnectionListener
virtual ~SyncClientConnectionListener ()=default
 
virtual void connected () noexcept=0
 Called when connection is established (on first connect or after a reconnection). More...
 
virtual void disconnected () noexcept=0
 Called when the client is disconnected from the sync server, e.g. due to a network error. Depending on the configuration, the sync client typically tries to reconnect automatically, triggering connected() when successful. More...
 
- Public Member Functions inherited from obx::SyncChangeListener
virtual ~SyncChangeListener ()=default
 
virtual void changed (const std::vector< SyncChange > &changes) noexcept=0
 Called each time when data changes from sync were applied locally. More...
 
- Public Member Functions inherited from obx::SyncClientTimeListener
virtual ~SyncClientTimeListener ()=default
 
virtual void serverTime (TimePoint time) noexcept=0
 Called when a server time information is received on the client. More...
 
- Public Member Functions inherited from obx::SyncClientErrorListener
virtual ~SyncClientErrorListener ()=default
 
virtual void errorOccurred (OBXSyncError error) noexcept=0
 Called when the client detects a sync error. More...
 

Detailed Description

Listens to all possible sync events. See each base abstract class for detailed information.