Rosetta
Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ui::task::Updater Class Referencefinal

#include <node.h>

Inheritance diagram for ui::task::Updater:
Inheritance graph
[legend]

Public Member Functions

bool listen () const
 check/set if Updater is currently listen (connect to remote server) to updates More...
 
void listen (bool)
 
void subscribe (Node *)
 subscribe and unsubscribe Node for updates More...
 

Static Public Member Functions

static Updaterget ()
 

Private Slots

void updates_finished ()
 
void update_data_ready ()
 
void listen_to_updates ()
 subscribe to server update channel. This signal can be used for all, even non-root nodes. More...
 

Private Member Functions

 Updater ()
 
void abort_network_operation ()
 
bool erase_deleted_subscribers ()
 

Private Attributes

std::multimap< QUuid, QPointer< Node > > subscribers_
 
bool listen_ = true
 
QNetworkReply * reply_ = nullptr
 

Constructor & Destructor Documentation

◆ Updater()

ui::task::Updater::Updater ( )
inlineprivate

Referenced by get().

Member Function Documentation

◆ abort_network_operation()

void ui::task::Updater::abort_network_operation ( )
private

◆ erase_deleted_subscribers()

bool ui::task::Updater::erase_deleted_subscribers ( )
private

◆ get()

Updater & ui::task::Updater::get ( )
static

◆ listen() [1/2]

bool ui::task::Updater::listen ( ) const
inline

check/set if Updater is currently listen (connect to remote server) to updates

References listen_.

◆ listen() [2/2]

void ui::task::Updater::listen ( bool  l)

◆ listen_to_updates

void ui::task::Updater::listen_to_updates ( )
privateslot

◆ subscribe()

void ui::task::Updater::subscribe ( Node node)

◆ update_data_ready

void ui::task::Updater::update_data_ready ( )
privateslot

◆ updates_finished

void ui::task::Updater::updates_finished ( )
privateslot

References listen_, listen_to_updates(), and reply_.

Referenced by listen_to_updates().

Member Data Documentation

◆ listen_

bool ui::task::Updater::listen_ = true
private

◆ reply_

QNetworkReply* ui::task::Updater::reply_ = nullptr
private

◆ subscribers_

std::multimap<QUuid, QPointer<Node> > ui::task::Updater::subscribers_
private

The documentation for this class was generated from the following files: