2017-01-05 16:07:20 +01:00
|
|
|
#ifndef LINK_H
|
|
|
|
#define LINK_H
|
|
|
|
|
2017-01-05 20:49:33 +01:00
|
|
|
#include <QString>
|
2017-01-05 16:07:20 +01:00
|
|
|
|
|
|
|
class Link
|
|
|
|
{
|
|
|
|
public:
|
2017-01-05 20:49:33 +01:00
|
|
|
enum Type {
|
|
|
|
None,
|
|
|
|
Url,
|
|
|
|
CloseCurrentSplit,
|
|
|
|
UserInfo,
|
|
|
|
InsertText,
|
|
|
|
ShowMessage,
|
|
|
|
};
|
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
Link();
|
2017-01-05 20:49:33 +01:00
|
|
|
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;
|
2017-01-05 16:07:20 +01:00
|
|
|
};
|
|
|
|
|
2017-01-05 20:49:33 +01:00
|
|
|
#endif // LINK_H
|