mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 11:33:25 -08:00
[Move refactor] Reparent orphan classes (#6236)
* Move orphaned classes to their correct parent folders. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
1ef07309d6
commit
d9c65d4ae0
143 changed files with 171 additions and 169 deletions
|
|
@ -1,46 +0,0 @@
|
|||
/**
|
||||
* @file handle_public_servers.h
|
||||
* @ingroup Server
|
||||
* @brief TODO: Document this.
|
||||
*/
|
||||
|
||||
#ifndef COCKATRICE_HANDLE_PUBLIC_SERVERS_H
|
||||
#define COCKATRICE_HANDLE_PUBLIC_SERVERS_H
|
||||
|
||||
#include "user/user_info_connection.h"
|
||||
|
||||
class QNetworkReply;
|
||||
class QNetworkAccessManager;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
class HandlePublicServers : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
signals:
|
||||
void sigPublicServersDownloadedSuccessfully();
|
||||
void sigPublicServersDownloadedUnsuccessfully(int);
|
||||
|
||||
public:
|
||||
explicit HandlePublicServers(QObject *parent = nullptr);
|
||||
~HandlePublicServers() override = default;
|
||||
|
||||
public slots:
|
||||
void downloadPublicServers();
|
||||
|
||||
private slots:
|
||||
void actFinishParsingDownloadedData();
|
||||
|
||||
private:
|
||||
void updateServerINISettings(QMap<QString, QVariant>);
|
||||
|
||||
QStringList publicServersToRemove;
|
||||
QMap<QString, std::pair<QString, UserConnection_Information>> savedHostList;
|
||||
QNetworkAccessManager *nam;
|
||||
QNetworkReply *reply;
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_HANDLE_PUBLIC_SERVERS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue