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-01-16 11:43:20 +01:00

29 lines
496 B
C++

#ifndef SCRIPT_H
#define SCRIPT_H
#include <QObject>
#include <QUuid>
class Script : public QObject
{
Q_OBJECT
Q_PROPERTY(QUuid id READ id CONSTANT)
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
public:
explicit Script(const QUuid &id, QObject *parent = nullptr);
QUuid id() const;
QString name() const;
void setName(const QString &name);
signals:
void nameChanged();
private:
QUuid m_id;
QString m_name;
};
#endif // SCRIPT_H