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); |
97 |
117 |
98 signals: |
118 signals: |
99 void chatLine(const QString& str); |
119 void chatLine(const QString& str); |