mirror-chatterino2/src/messages/Link.hpp

36 lines
566 B
C++

#pragma once
#include <QString>
namespace chatterino {
struct Link {
public:
enum Type {
None,
Url,
CloseCurrentSplit,
UserInfo,
UserTimeout,
UserBan,
UserWhisper,
InsertText,
ShowMessage,
UserAction,
AutoModAllow,
AutoModDeny,
OpenAccountsPage,
JumpToChannel,
};
Link();
Link(Type getType, const QString &getValue);
Type type;
QString value;
bool isValid() const;
bool isUrl() const;
};
} // namespace chatterino