QTfrontend/ui/widget/chatwidget.h
branch0.9.19
changeset 8924 13ac59499066
parent 8762 388d2bf73ff9
child 9080 9b42757d7e71
equal deleted inserted replaced
8904:6ea838b8dcd5 8924:13ac59499066
    84         void saveStyleSheet();
    84         void saveStyleSheet();
    85         QString linkedNick(const QString & nickname);
    85         QString linkedNick(const QString & nickname);
    86         void beforeContentAdd();
    86         void beforeContentAdd();
    87         void afterContentAdd();
    87         void afterContentAdd();
    88 
    88 
       
    89         /**
       
    90          * @brief Checks whether the message contains a highlight.
       
    91          * @param sender the sender of the message
       
    92          * @param message the message
       
    93          * @return true if the sender is somebody else and the message contains a highlight, otherwise false
       
    94          */
       
    95         bool containsHighlight(const QString & sender, const QString & message);
       
    96         /**
       
    97          * @brief Escapes HTML chars in the message and converts URls to HTML links.
       
    98          * @param message the message to be converted to HTML
       
    99          * @return the HTML message
       
   100          */
       
   101         QString messageToHTML(const QString & message);
       
   102         void printChatString(
       
   103             const QString & nick,
       
   104             const QString & str,
       
   105             const QString & cssClassPart,
       
   106             bool highlight);
       
   107 
    89     public slots:
   108     public slots:
    90         void onChatString(const QString& str);
   109         void onChatAction(const QString & nick, const QString & str);
    91         void onChatString(const QString& nick, const QString& str);
   110         void onChatMessage(const QString & nick, const QString & str);
    92         void onServerMessage(const QString& str);
   111         void onServerMessage(const QString& str);
    93         void nickAdded(const QString& nick, bool notifyNick);
   112         void nickAdded(const QString& nick, bool notifyNick);
    94         void nickRemoved(const QString& nick);
   113         void nickRemoved(const QString& nick);
       
   114         void nickRemoved(const QString& nick, const QString& message);
    95         void clear();
   115         void clear();
    96         void adminAccess(bool);
   116         void adminAccess(bool);
       
   117         void onPlayerInfo(
       
   118             const QString & nick,
       
   119             const QString & ip,
       
   120             const QString & version,
       
   121             const QString & roomInfo);
    97 
   122 
    98     signals:
   123     signals:
    99         void chatLine(const QString& str);
   124         void chatLine(const QString& str);
   100         void kick(const QString & str);
   125         void kick(const QString & str);
   101         void ban(const QString & str);
   126         void ban(const QString & str);