Files
chatterino2/src/messages/Link.hpp
Paweł cfcac99ae6 Added clip creation support 🎬 (#2271)
You can create clips with `/clip` command, `Alt+X` keybind or `Create a clip` option in split header's context menu. This requires a new authentication scope so re-authentication will be required to use it.

Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-01-17 14:47:34 +01:00

39 lines
610 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,
Reconnect,
CopyToClipboard,
};
Link();
Link(Type getType, const QString &getValue);
Type type;
QString value;
bool isValid() const;
bool isUrl() const;
};
} // namespace chatterino