From 2685e8e4fbbc480bbc9edf991faace7082987f38 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 9 Dec 2014 22:07:31 +0100 Subject: -New API for result type. --- stringresult.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'stringresult.h') diff --git a/stringresult.h b/stringresult.h index 7db55a1..caa7e06 100644 --- a/stringresult.h +++ b/stringresult.h @@ -1,13 +1,36 @@ #ifndef STRINGRESULT_H #define STRINGRESULT_H +#include +#include "result.h" /** * @brief The StringResult class */ -class StringResult +class StringResult : public Result { public: + /** + * @brief StringResult + */ StringResult(); + /** + * @brief setText + * @param text + */ + void setText(QString text); + /** + * @brief getText + * @return + */ + QString getText() const; + /** + * @brief getScalar + * @return + */ + virtual QVariant getResult(RESULT_TYPE); + +private: + QString m_value; }; #endif // STRINGRESULT_H -- cgit v1.2.3-70-g09d2