blob: b0ca539d23a262477001078bcc3c4c93b394cbe4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef STRINGRESULT_H
#define STRINGRESULT_H
#include "diceresult.h"
#include <QString>
/**
* @brief The StringResult class stores command result for String.
*/
class StringResult : public DiceResult
{
public:
/**
* @brief StringResult
*/
StringResult();
/**
* @brief StringResult
*/
virtual ~StringResult() override;
void addText(QString text);
void finished();
QString getText() const;
virtual QVariant getResult(Dice::RESULT_TYPE) override;
virtual QString toString(bool) override;
virtual void setHighLight(bool);
virtual bool hasHighLight() const;
virtual bool hasResultOfType(Dice::RESULT_TYPE resultType) const override;
virtual Result* getCopy() const override;
bool isDigitOnly() const;
void setStringCount(int count);
QString getStringResult() const override;
void setNoComma(bool b);
private:
QStringList m_value;
bool m_highlight= true;
int m_stringCount= 0;
bool m_commaSeparator= true;
};
#endif // STRINGRESULT_H
|