qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
BootstrapNodeUpdater Class Reference

#include <bootstrapnodeupdater.h>

Inheritance diagram for BootstrapNodeUpdater:
Inheritance graph
Collaboration diagram for BootstrapNodeUpdater:
Collaboration graph

Signals

void availableBootstrapNodes (QList< DhtServer > nodes)
 

Public Member Functions

 BootstrapNodeUpdater (const QNetworkProxy &proxy, Paths &_paths, QObject *parent=nullptr)
 Fetches a list of currently online bootstrap nodes from node.tox.chat. More...
 
QList< DhtServergetBootstrapnodes () const override
 
void requestBootstrapNodes ()
 
- Public Member Functions inherited from IBootstrapListGenerator
 IBootstrapListGenerator ()=default
 
virtual ~IBootstrapListGenerator ()
 
 IBootstrapListGenerator (const IBootstrapListGenerator &)=default
 
IBootstrapListGeneratoroperator= (const IBootstrapListGenerator &)=default
 
 IBootstrapListGenerator (IBootstrapListGenerator &&)=default
 
IBootstrapListGeneratoroperator= (IBootstrapListGenerator &&)=default
 

Static Public Member Functions

static QList< DhtServerloadDefaultBootstrapNodes ()
 Loads the list of built in boostrap nodes. More...
 

Private Slots

void onRequestComplete (QNetworkReply *reply)
 

Private Member Functions

QList< DhtServerloadUserBootrapNodes ()
 

Private Attributes

QNetworkProxy proxy
 
QNetworkAccessManager nam
 
Pathspaths
 

Detailed Description

Definition at line 33 of file bootstrapnodeupdater.h.

Constructor & Destructor Documentation

◆ BootstrapNodeUpdater()

BootstrapNodeUpdater::BootstrapNodeUpdater ( const QNetworkProxy &  proxy,
Paths _paths,
QObject *  parent = nullptr 
)
explicit

Fetches a list of currently online bootstrap nodes from node.tox.chat.

Parameters
proxyProxy to use for the lookup, must outlive this object

Definition at line 210 of file bootstrapnodeupdater.cpp.

Member Function Documentation

◆ availableBootstrapNodes

void BootstrapNodeUpdater::availableBootstrapNodes ( QList< DhtServer nodes)
signal
Here is the caller graph for this function:

◆ getBootstrapnodes()

QList< DhtServer > BootstrapNodeUpdater::getBootstrapnodes ( ) const
overridevirtual

Implements IBootstrapListGenerator.

Definition at line 216 of file bootstrapnodeupdater.cpp.

Here is the call graph for this function:

◆ loadDefaultBootstrapNodes()

QList< DhtServer > BootstrapNodeUpdater::loadDefaultBootstrapNodes ( )
static

Loads the list of built in boostrap nodes.

Returns
List of bootstrap nodes on success, empty list on error

Definition at line 250 of file bootstrapnodeupdater.cpp.

◆ loadUserBootrapNodes()

QList<DhtServer> BootstrapNodeUpdater::loadUserBootrapNodes ( )
private

◆ onRequestComplete

void BootstrapNodeUpdater::onRequestComplete ( QNetworkReply *  reply)
privateslot

Definition at line 255 of file bootstrapnodeupdater.cpp.

Here is the caller graph for this function:

◆ requestBootstrapNodes()

void BootstrapNodeUpdater::requestBootstrapNodes ( )

Definition at line 235 of file bootstrapnodeupdater.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ nam

QNetworkAccessManager BootstrapNodeUpdater::nam
private

Definition at line 53 of file bootstrapnodeupdater.h.

◆ paths

Paths& BootstrapNodeUpdater::paths
private

Definition at line 54 of file bootstrapnodeupdater.h.

◆ proxy

QNetworkProxy BootstrapNodeUpdater::proxy
private

Definition at line 52 of file bootstrapnodeupdater.h.


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