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

#include <servers_settings.h>

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

Public Member Functions

int getPreviousHostLogin ()
int getPrevioushostindex (const QString &)
QStringList getPreviousHostList ()
QString getPrevioushostName ()
QString getHostname (QString defaultHost=SERVERSETTINGS_DEFAULT_HOST)
QString getPort (QString defaultPort=SERVERSETTINGS_DEFAULT_PORT)
QString getPlayerName (QString defaultName="")
QString getFPHostname (QString defaultHost=SERVERSETTINGS_DEFAULT_HOST)
QString getFPPort (QString defaultPort=SERVERSETTINGS_DEFAULT_PORT)
QString getFPPlayerName (QString defaultName="")
QString getPassword ()
QString getSaveName (QString defaultname="")
QString getSite (QString defaultName="")
bool getSavePassword ()
int getAutoConnect ()
void setPreviousHostLogin (int previous)
void setPrevioushostName (const QString &)
void setPreviousHostList (QStringList list)
void setAutoConnect (int autoconnect)
void setSite (QString site)
void setFPHostName (QString hostname)
void setFPPort (QString port)
void setFPPlayerName (QString playerName)
void addNewServer (const QString &saveName, const QString &serv, const QString &port, const QString &username, const QString &password, bool savePassword, const QString &site=QString())
void removeServer (QString servAddr)
bool updateExistingServer (QString saveName, QString serv, QString port, QString username, QString password, bool savePassword, QString site=QString())
bool updateExistingServerWithoutLoss (QString saveName, QString serv=QString(), QString port=QString(), QString site=QString())
void setClearDebugLogStatus (bool abIsChecked)
bool getClearDebugLogStatus (bool abDefaultValue)
Public Member Functions inherited from SettingsManager
 SettingsManager (const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
QVariant getValue (const QString &name)
QVariant getValue (const QString &name, const QString &group, const QString &subGroup=QString())
void sync ()

Private Member Functions

 ServersSettings (const QString &settingPath, QObject *parent=nullptr)
 ServersSettings (const ServersSettings &)

Friends

class SettingsCache

Additional Inherited Members

Protected Member Functions inherited from SettingsManager
void setValue (const QVariant &value, const QString &name)
void setValue (const QVariant &value, const QString &name, const QString &group, const QString &subGroup=QString())
void deleteValue (const QString &name)
void deleteValue (const QString &name, const QString &group, const QString &subGroup=QString())
Protected Attributes inherited from SettingsManager
QSettings settings
QString defaultGroup
QString defaultSubGroup

Constructor & Destructor Documentation

◆ ServersSettings() [1/2]

ServersSettings::ServersSettings ( const QString & settingPath,
QObject * parent = nullptr )
explicitprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ServersSettings() [2/2]

ServersSettings::ServersSettings ( const ServersSettings & )
private
Here is the call graph for this function:

Member Function Documentation

◆ addNewServer()

void ServersSettings::addNewServer ( const QString & saveName,
const QString & serv,
const QString & port,
const QString & username,
const QString & password,
bool savePassword,
const QString & site = QString() )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAutoConnect()

int ServersSettings::getAutoConnect ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClearDebugLogStatus()

bool ServersSettings::getClearDebugLogStatus ( bool abDefaultValue)
Here is the call graph for this function:

◆ getFPHostname()

QString ServersSettings::getFPHostname ( QString defaultHost = SERVERSETTINGS_DEFAULT_HOST)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFPPlayerName()

QString ServersSettings::getFPPlayerName ( QString defaultName = "")
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFPPort()

QString ServersSettings::getFPPort ( QString defaultPort = SERVERSETTINGS_DEFAULT_PORT)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getHostname()

QString ServersSettings::getHostname ( QString defaultHost = SERVERSETTINGS_DEFAULT_HOST)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPassword()

QString ServersSettings::getPassword ( )
Here is the call graph for this function:

◆ getPlayerName()

QString ServersSettings::getPlayerName ( QString defaultName = "")
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPort()

QString ServersSettings::getPort ( QString defaultPort = SERVERSETTINGS_DEFAULT_PORT)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPrevioushostindex()

int ServersSettings::getPrevioushostindex ( const QString & saveName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPreviousHostList()

QStringList ServersSettings::getPreviousHostList ( )
Here is the call graph for this function:

◆ getPreviousHostLogin()

int ServersSettings::getPreviousHostLogin ( )
Here is the call graph for this function:

◆ getPrevioushostName()

QString ServersSettings::getPrevioushostName ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSaveName()

QString ServersSettings::getSaveName ( QString defaultname = "")
Here is the call graph for this function:

◆ getSavePassword()

bool ServersSettings::getSavePassword ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSite()

QString ServersSettings::getSite ( QString defaultName = "")
Here is the call graph for this function:

◆ removeServer()

void ServersSettings::removeServer ( QString servAddr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAutoConnect()

void ServersSettings::setAutoConnect ( int autoconnect)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setClearDebugLogStatus()

void ServersSettings::setClearDebugLogStatus ( bool abIsChecked)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFPHostName()

void ServersSettings::setFPHostName ( QString hostname)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFPPlayerName()

void ServersSettings::setFPPlayerName ( QString playerName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFPPort()

void ServersSettings::setFPPort ( QString port)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPreviousHostList()

void ServersSettings::setPreviousHostList ( QStringList list)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPreviousHostLogin()

void ServersSettings::setPreviousHostLogin ( int previous)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPrevioushostName()

void ServersSettings::setPrevioushostName ( const QString & name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSite()

void ServersSettings::setSite ( QString site)

◆ updateExistingServer()

bool ServersSettings::updateExistingServer ( QString saveName,
QString serv,
QString port,
QString username,
QString password,
bool savePassword,
QString site = QString() )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateExistingServerWithoutLoss()

bool ServersSettings::updateExistingServerWithoutLoss ( QString saveName,
QString serv = QString(),
QString port = QString(),
QString site = QString() )

Will only update fields with new values, ignores empty values

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SettingsCache

friend class SettingsCache
friend

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