mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
Clang-format (#3028)
* 1/3 Add .clang-format file and travis compilation check * 2/3 Run clang-format * 3/3 Fix compilation problems due to include reordering * 3bis/3 AfterControlStatement: false
This commit is contained in:
parent
8dbdd24c8e
commit
b29bd9e070
272 changed files with 13378 additions and 9535 deletions
|
|
@ -1,31 +1,50 @@
|
|||
#ifndef USERCONNECTION_INFORMATION_H
|
||||
#define USERCONNECTION_INFORMATION_H
|
||||
|
||||
#include <QSettings>
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
#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;
|
||||
|
||||
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);
|
||||
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