mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-07 16:53:00 -07:00
Server List from JSON (#3165)
This commit is contained in:
parent
0c10b66a2d
commit
61e509585f
13 changed files with 376 additions and 161 deletions
|
|
@ -16,35 +16,36 @@ private:
|
|||
QString username;
|
||||
QString password;
|
||||
bool savePassword;
|
||||
bool isCustom;
|
||||
|
||||
public:
|
||||
UserConnection_Information();
|
||||
UserConnection_Information(QString, QString, QString, QString, QString, bool);
|
||||
QString getSaveName()
|
||||
QString getSaveName() const
|
||||
{
|
||||
return saveName;
|
||||
}
|
||||
QString getServer()
|
||||
QString getServer() const
|
||||
{
|
||||
return server;
|
||||
}
|
||||
QString getPort()
|
||||
QString getPort() const
|
||||
{
|
||||
return port;
|
||||
}
|
||||
QString getUsername()
|
||||
QString getUsername() const
|
||||
{
|
||||
return username;
|
||||
}
|
||||
QString getPassword()
|
||||
QString getPassword() const
|
||||
{
|
||||
return password;
|
||||
}
|
||||
bool getSavePassword()
|
||||
bool getSavePassword() const
|
||||
{
|
||||
return savePassword;
|
||||
}
|
||||
QMap<QString, UserConnection_Information> getServerInfo();
|
||||
QMap<QString, std::pair<QString, UserConnection_Information>> getServerInfo();
|
||||
QStringList getServerInfo(const QString &find);
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue