2017-06-07 10:09:24 +02:00
|
|
|
#pragma once
|
2017-01-05 16:07:20 +01:00
|
|
|
|
2017-01-05 20:49:33 +01:00
|
|
|
#include <QString>
|
2017-01-05 16:07:20 +01:00
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-01-28 03:52:52 +01:00
|
|
|
struct Link {
|
2017-01-05 16:07:20 +01:00
|
|
|
public:
|
2017-01-05 20:49:33 +01:00
|
|
|
enum Type {
|
|
|
|
None,
|
|
|
|
Url,
|
|
|
|
CloseCurrentSplit,
|
|
|
|
UserInfo,
|
2017-01-15 16:38:30 +01:00
|
|
|
UserTimeout,
|
|
|
|
UserBan,
|
2018-08-26 10:42:00 +02:00
|
|
|
UserWhisper,
|
2017-01-05 20:49:33 +01:00
|
|
|
InsertText,
|
|
|
|
ShowMessage,
|
2018-01-17 14:14:31 +01:00
|
|
|
UserAction,
|
2019-01-20 14:45:59 +01:00
|
|
|
AutoModAllow,
|
|
|
|
AutoModDeny,
|
2020-10-04 17:36:38 +02:00
|
|
|
OpenAccountsPage,
|
2020-11-28 17:45:20 +01:00
|
|
|
JumpToChannel,
|
2021-01-17 14:47:34 +01:00
|
|
|
Reconnect,
|
|
|
|
CopyToClipboard,
|
2022-07-31 12:45:25 +02:00
|
|
|
ReplyToMessage,
|
|
|
|
ViewThread,
|
2017-01-05 20:49:33 +01:00
|
|
|
};
|
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
Link();
|
2017-01-18 04:33:30 +01:00
|
|
|
Link(Type getType, const QString &getValue);
|
2017-01-05 20:49:33 +01:00
|
|
|
|
2017-01-18 04:33:30 +01:00
|
|
|
Type type;
|
|
|
|
QString value;
|
2017-01-05 16:07:20 +01:00
|
|
|
|
2018-01-28 03:52:52 +01:00
|
|
|
bool isValid() const;
|
2020-05-02 13:19:58 +02:00
|
|
|
bool isUrl() const;
|
2018-01-28 03:52:52 +01:00
|
|
|
};
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2017-06-07 10:09:24 +02:00
|
|
|
} // namespace chatterino
|