This repository has been archived on 2020-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
NetworkPacketComposer/guidededitorelement.h

49 lines
867 B
C
Raw Normal View History

#ifndef EDITORELEMENT_H
#define EDITORELEMENT_H
#include <QObject>
2015-09-06 18:57:18 +02:00
#include <QString>
2015-09-06 18:57:18 +02:00
enum class ElementType {
INPUT, CHOOSER, STATIC
};
class GuidedEditorElement : public QObject
{
Q_OBJECT
public:
2015-09-06 18:57:18 +02:00
explicit GuidedEditorElement(QObject *parent = 0);
~GuidedEditorElement();
QString getTitle() const;
void setTitle(const QString &value);
QString getDescription() const;
void setDescription(const QString &value);
QString getExample() const;
void setExample(const QString &value);
QString getSyntaxregex() const;
void setSyntaxregex(const QString &value);
ElementType getType() const;
void setType(const ElementType &value);
QString getValue() const;
void setValue(const QString &value);
private:
QString title;
QString description;
QString example;
QString syntaxregex;
ElementType type;
QString value;
};
#endif // EDITORELEMENT_H