mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
* Move logging from QDebug to QCDebug and introduce LoggingCategories. * Lint. * Unlint like one change. * Remove .debug category since this is autofilled by Qt and used to differentiate between QCDebug and QCWarning and QCError. * Uncomment defaults, include main category. * Make PictureLoader logging a bit more useful. * Lint...? * Address comments. * Clean up some unnecessary classes in logging statements. * Add a new message format to the logging handler. * Lint. * Lint. * Support Windows in Regex --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> Co-authored-by: ZeldaZach <zahalpern+github@gmail.com>
58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
#ifndef USERCONNECTION_INFORMATION_H
|
|
#define USERCONNECTION_INFORMATION_H
|
|
|
|
#include <QApplication>
|
|
#include <QDir>
|
|
#include <QFile>
|
|
#include <QLoggingCategory>
|
|
#include <QSettings>
|
|
#include <QStandardPaths>
|
|
|
|
inline Q_LOGGING_CATEGORY(UserInfoConnectionLog, "user_info_connection");
|
|
|
|
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
|