aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/result.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-25 09:59:29 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-25 09:59:29 +0200
commitbb6b87a2685c0d71b5c38be33c100f85ac0b9cee (patch)
tree81da599ceec1368e55fee5fd6a4dd0173fc39b5f /result/result.h
parent6f499de159eeac37fe473f945042e13359dc2d40 (diff)
downloadOneRoll-bb6b87a2685c0d71b5c38be33c100f85ac0b9cee.tar.gz
OneRoll-bb6b87a2685c0d71b5c38be33c100f85ac0b9cee.zip
Rework of the component to be a proper lib
Diffstat (limited to 'result/result.h')
-rw-r--r--result/result.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/result/result.h b/result/result.h
index 8f31c05..a34c74f 100644
--- a/result/result.h
+++ b/result/result.h
@@ -22,7 +22,7 @@
#ifndef RESULT_H
#define RESULT_H
-//#include <Qt>
+#include "diceparserhelper.h"
#include <QString>
#include <QVariant>
/**
@@ -32,16 +32,6 @@ class Result
{
public:
/**
- * @brief The RESULT_TYPE enum or combinaison
- */
- enum RESULT_TYPE
- {
- NONE= 0,
- SCALAR= 1,
- STRING= 2,
- DICE_LIST= 4
- };
- /**
* @brief Result
*/
Result();
@@ -54,12 +44,12 @@ public:
* @brief isScalar
* @return
*/
- virtual bool hasResultOfType(RESULT_TYPE) const;
+ virtual bool hasResultOfType(Dice::RESULT_TYPE) const;
/**
* @brief getScalar
* @return
*/
- virtual QVariant getResult(RESULT_TYPE)= 0;
+ virtual QVariant getResult(Dice::RESULT_TYPE)= 0;
/**
* @brief getPrevious
* @return