This commit is contained in:
fourtf
2017-01-05 20:49:33 +01:00
parent a8006cf68c
commit 4d96dcc5e3
13 changed files with 210 additions and 149 deletions
+28 -1
View File
@@ -1,11 +1,38 @@
#ifndef LINK_H
#define LINK_H
#include <QString>
class Link
{
public:
enum Type {
None,
Url,
CloseCurrentSplit,
UserInfo,
InsertText,
ShowMessage,
};
Link();
Link(Type type, const QString& value);
bool isValid() {
return m_type == None;
}
Type type() {
return m_type;
}
const QString& value() {
return m_value;
}
private:
Type m_type;
QString m_value;
};
#endif // LINK_H
#endif // LINK_H