* 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
50 lines
973 B
C++
50 lines
973 B
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;
|
|
|
|
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
|