Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
HandlePublicServers Class Reference

#include <handle_public_servers.h>

Inheritance diagram for HandlePublicServers:
[legend]
Collaboration diagram for HandlePublicServers:
[legend]

Public Slots

void downloadPublicServers ()

Signals

void sigPublicServersDownloadedSuccessfully ()
void sigPublicServersDownloadedUnsuccessfully (int)

Public Member Functions

 HandlePublicServers (QObject *parent=nullptr)
 ~HandlePublicServers () override=default

Private Slots

void actFinishParsingDownloadedData ()

Private Member Functions

void updateServerINISettings (QMap< QString, QVariant >)

Private Attributes

QStringList publicServersToRemove
QMap< QString, std::pair< QString, UserConnection_Information > > savedHostList
QNetworkAccessManager * nam
QNetworkReply * reply

Detailed Description

This class is used to update the servers.ini file and ensure the list of public servers has up-to-date information. Servers that are added manually by users are not modified.

Constructor & Destructor Documentation

◆ HandlePublicServers()

HandlePublicServers::HandlePublicServers ( QObject * parent = nullptr)
explicit

◆ ~HandlePublicServers()

HandlePublicServers::~HandlePublicServers ( )
overridedefault

Member Function Documentation

◆ actFinishParsingDownloadedData

void HandlePublicServers::actFinishParsingDownloadedData ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ downloadPublicServers

void HandlePublicServers::downloadPublicServers ( )
slot
Here is the call graph for this function:

◆ sigPublicServersDownloadedSuccessfully

void HandlePublicServers::sigPublicServersDownloadedSuccessfully ( )
signal
Here is the caller graph for this function:

◆ sigPublicServersDownloadedUnsuccessfully

void HandlePublicServers::sigPublicServersDownloadedUnsuccessfully ( int )
signal
Here is the caller graph for this function:

◆ updateServerINISettings()

void HandlePublicServers::updateServerINISettings ( QMap< QString, QVariant > jsonMap)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ nam

QNetworkAccessManager* HandlePublicServers::nam
private

◆ publicServersToRemove

QStringList HandlePublicServers::publicServersToRemove
private

◆ reply

QNetworkReply* HandlePublicServers::reply
private

◆ savedHostList

QMap<QString, std::pair<QString, UserConnection_Information> > HandlePublicServers::savedHostList
private

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