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.
2020-03-26 23:31:42 +01:00

26 lines
485 B
C++

#ifndef USERINFO_H
#define USERINFO_H
#include <QObject>
class UserInfo : public QObject
{
Q_OBJECT
Q_PROPERTY(QString username READ username NOTIFY usernameChanged)
public:
explicit UserInfo(QObject *parent = nullptr);
explicit UserInfo(const QString &username, QObject *parent = nullptr);
QString username() const;
void setUsername(const QString &username);
signals:
void usernameChanged();
private:
QString m_username;
};
#endif // USERINFO_H