#ifndef MESSAGE_H #define MESSAGE_H #include "messages/message.h" #include "messages/messageparseargs.h" #include "messages/word.h" #include "messages/wordpart.h" #include #include #include #include namespace chatterino { class Channel; namespace messages { class Message; typedef std::shared_ptr SharedMessage; class Message { public: Message(const QString &text); Message(const std::vector &words); bool getCanHighlightTab() const; const QString &getTimeoutUser() const; int getTimeoutCount() const; const QString &getUserName() const; const QString &getDisplayName() const; const QString &getContent() const; const std::chrono::time_point &getParseTime() const; std::vector &getWords(); bool isDisabled() const; const QString &getId() const; private: static LazyLoadedImage *badgeStaff; static LazyLoadedImage *badgeAdmin; static LazyLoadedImage *badgeGlobalmod; static LazyLoadedImage *badgeModerator; static LazyLoadedImage *badgeTurbo; static LazyLoadedImage *badgeBroadcaster; static LazyLoadedImage *badgePremium; static QRegularExpression *cheerRegex; bool _highlightTab = false; QString _timeoutUser = ""; int _timeoutCount = 0; bool _isDisabled = false; std::chrono::time_point _parseTime; QString _userName = ""; QString _displayName = ""; QString _content; QString _id = ""; std::vector _words; }; } // namespace messages } // namespace chatterino #endif // MESSAGE_H