#ifndef DIRECTEDMESSAGEPARSER_H #define DIRECTEDMESSAGEPARSER_H #include #include #include class DirectedMessageParser { public: struct Token { int start = 0; int length = 0; enum Type { Sender, Recipient, RelayChain, Command, Group } type = Recipient; QString tooltip; QList> hops; int recipientHopIndex = -1; bool partial = false; }; static QList parseTokensForLine( const QString &text, const QString &implicitTarget = QString()); }; #endif // DIRECTEDMESSAGEPARSER_H