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.
powersync-app/libnymea-app-core/configuration/mqttbrokerconfiguration.h
2018-11-19 23:40:09 +01:00

30 lines
720 B
C++

#ifndef MQTTBROKERCONFIGURATION_H
#define MQTTBROKERCONFIGURATION_H
#include <QObject>
class MqttBrokerConfiguration : public QObject
{
Q_OBJECT
Q_PROPERTY(QString username READ username WRITE setUsername NOTIFY usernameChanged)
Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
public:
explicit MqttBrokerConfiguration(QObject *parent = nullptr);
QString username() const;
void setUsername(const QString &username);
QString password() const;
void setPassword(const QString &password);
signals:
void usernameChanged();
void passwordChanged();
private:
QString m_username;
QString m_password;
};
#endif // MQTTBROKERCONFIGURATION_H