mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
Server Connect Remade (#2452)
* Save multiple server configurations * Each server has its own password/port storage Close #2452
This commit is contained in:
parent
37b43f9916
commit
4cfcca33db
9 changed files with 280 additions and 58 deletions
31
cockatrice/src/userconnection_information.h
Normal file
31
cockatrice/src/userconnection_information.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef USERCONNECTION_INFORMATION_H
|
||||
#define USERCONNECTION_INFORMATION_H
|
||||
|
||||
#include <QSettings>
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
#include <QApplication>
|
||||
#include <QStandardPaths>
|
||||
|
||||
class UserConnection_Information {
|
||||
private:
|
||||
QString saveName;
|
||||
QString server;
|
||||
QString port;
|
||||
QString username;
|
||||
QString password;
|
||||
bool savePassword;
|
||||
|
||||
public:
|
||||
UserConnection_Information();
|
||||
UserConnection_Information(QString, QString, QString, QString, QString, bool);
|
||||
QString getSaveName() { return saveName; }
|
||||
QString getServer() { return server; }
|
||||
QString getPort() { return port; }
|
||||
QString getUsername() { return username; }
|
||||
QString getPassword() { return password; }
|
||||
bool getSavePassword() { return savePassword; }
|
||||
QMap<QString, UserConnection_Information> getServerInfo();
|
||||
QStringList getServerInfo(const QString &find);
|
||||
};
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue