mirror-chatterino2/link.h
2017-01-18 04:33:30 +01:00

47 lines
569 B
C++

#ifndef LINK_H
#define LINK_H
#include <QString>
class Link
{
public:
enum Type {
None,
Url,
CloseCurrentSplit,
UserInfo,
UserTimeout,
UserBan,
InsertText,
ShowMessage,
};
Link();
Link(Type getType, const QString &getValue);
bool
getIsValid()
{
return type == None;
}
Type
getType()
{
return type;
}
const QString &
getValue()
{
return value;
}
private:
Type type;
QString value;
};
#endif // LINK_H