mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
45 lines
526 B
C++
45 lines
526 B
C++
#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
|