* add werror flags when making a debug build using llvm this would get bugs like https://github.com/Cockatrice/Cockatrice/pull/4337 get signalled earlier to us * fix error: 'Servatrice_DatabaseInterface::registerUser' hides overloaded virtual function * remove unused field * mac machines have 3 cores see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources * typo
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#ifndef USERCONNECTION_INFORMATION_H
|
|
#define USERCONNECTION_INFORMATION_H
|
|
|
|
#include <QApplication>
|
|
#include <QDir>
|
|
#include <QFile>
|
|
#include <QSettings>
|
|
#include <QStandardPaths>
|
|
|
|
class UserConnection_Information
|
|
{
|
|
private:
|
|
QString saveName;
|
|
QString server;
|
|
QString port;
|
|
QString username;
|
|
QString password;
|
|
bool savePassword;
|
|
QString site;
|
|
|
|
public:
|
|
UserConnection_Information();
|
|
UserConnection_Information(QString, QString, QString, QString, QString, bool, QString);
|
|
QString getSaveName() const
|
|
{
|
|
return saveName;
|
|
}
|
|
QString getServer() const
|
|
{
|
|
return server;
|
|
}
|
|
QString getPort() const
|
|
{
|
|
return port;
|
|
}
|
|
QString getUsername() const
|
|
{
|
|
return username;
|
|
}
|
|
QString getPassword() const
|
|
{
|
|
return password;
|
|
}
|
|
bool getSavePassword() const
|
|
{
|
|
return savePassword;
|
|
}
|
|
QString getSite() const
|
|
{
|
|
return site;
|
|
}
|
|
QMap<QString, std::pair<QString, UserConnection_Information>> getServerInfo();
|
|
QStringList getServerInfo(const QString &find);
|
|
};
|
|
#endif
|