blob: 565b9039ca8b8e342c642b25405d6104cf64a9e8 (
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
|
#ifndef DICEALIAS_H
#define DICEALIAS_H
#include <QString>
class DiceAlias
{
public:
enum RESOLUTION_TYPE { REPLACE,REGEXP};
DiceAlias(QString cmd, QString key, bool isReplace = true);
~DiceAlias();
bool resolved(QString & str);
void setCommand(QString key);
void setValue(QString value);
void setType(RESOLUTION_TYPE );
QString getCommand();
QString getValue();
bool isReplace();
private:
QString m_command;
QString m_value;
RESOLUTION_TYPE m_type;
};
#endif // DICEALIAS_H
|