+ // Don't change these enums without also changing dependent methods!
+ enum Type {
+ Invalid = -1,
+ Url = 0,
+ Channel = 1,
+ Nick = 2
+ };
+
+ explicit inline Clickable(Type type = Invalid, quint16 start = 0, quint16 length = 0)
+ : _type(type), _start(start), _length(length)
+ {}