mirror-chatterino2/messages/link.h
2017-02-17 23:51:35 +01:00

52 lines
636 B
C++

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