* Save multiple server configurations * Each server has its own password/port storage Close #2452
31 lines
953 B
C++
31 lines
953 B
C++
#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
|