This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-10-09 16:24:30 +02:00

34 lines
924 B
C++

#ifndef SERVERCONFIGURATION_H
#define SERVERCONFIGURATION_H
#include <QObject>
#include <QHostAddress>
#include <QUuid>
class ServerConfiguration : public QObject
{
Q_OBJECT
Q_PROPERTY(QString id READ id CONSTANT)
Q_PROPERTY(QString address READ address CONSTANT)
Q_PROPERTY(int port READ port CONSTANT)
Q_PROPERTY(bool authenticationEnabled READ authenticationEnabled CONSTANT)
Q_PROPERTY(bool sslEnabled READ sslEnabled CONSTANT)
public:
explicit ServerConfiguration(const QString &id, const QHostAddress &address, int port, bool authEnabled, bool sslEnabled, QObject *parent = nullptr);
QString id() const;
QString address() const;
int port() const;
bool authenticationEnabled() const;
bool sslEnabled() const;
private:
QString m_id;
QHostAddress m_hostAddress;
int m_port;
bool m_authEnabled;
bool m_sslEnabled;
};
#endif // SERVERCONFIGURATION_H