aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/stringresult.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-12-09 22:07:31 +0100
committerRenaud G <renaud@rolisteam.org>2014-12-09 22:07:31 +0100
commit2685e8e4fbbc480bbc9edf991faace7082987f38 (patch)
treefcd9b208f08a36346134de6c8ee3913b8d31fc2f /stringresult.h
parentfa1c05a58698d3a6c049479eb8f7d88ac9ddb348 (diff)
downloadOneRoll-2685e8e4fbbc480bbc9edf991faace7082987f38.tar.gz
OneRoll-2685e8e4fbbc480bbc9edf991faace7082987f38.zip
-New API for result type.
Diffstat (limited to 'stringresult.h')
-rw-r--r--stringresult.h25
1 files changed, 24 insertions, 1 deletions
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 <QString>
+#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