diff options
| author | 2016-11-01 12:10:54 +0100 | |
|---|---|---|
| committer | 2016-11-01 12:10:54 +0100 | |
| commit | d5876d9b88c2f695592338335308a32e584d86a4 (patch) | |
| tree | bb0c3f757512fb913812902143b73b7380451502 /node/stringnode.h | |
| parent | d29b6d34b713d9241eb96cb99802ca8bc24cc3bd (diff) | |
| download | OneRoll-d5876d9b88c2f695592338335308a32e584d86a4.tar.gz OneRoll-d5876d9b88c2f695592338335308a32e584d86a4.zip | |
-add management of string node to display text in some condition.
Diffstat (limited to 'node/stringnode.h')
| -rw-r--r-- | node/stringnode.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/node/stringnode.h b/node/stringnode.h index 6f01fe8..cf70d02 100644 --- a/node/stringnode.h +++ b/node/stringnode.h @@ -1,11 +1,25 @@ #ifndef STRINGNODE_H #define STRINGNODE_H +#include "node/executionnode.h" +#include "result/stringresult.h" -class StringNode +/** + * @brief The StringNode class is an ExecutionNode. It is dedicated to store string and display result. + */ +class StringNode : public ExecutionNode { public: StringNode(); + void run(ExecutionNode* previous); + void setString(QString str); + virtual QString toString(bool withLabel)const; + virtual qint64 getPriority() const; + +private: + QString m_data; + StringResult* m_stringResult; + }; -#endif // STRINGNODE_H
\ No newline at end of file +#endif // STRINGNODE_H |