QTfrontend/net/proto.h
changeset 8759 1a4b9b9fe2b0
parent 6952 7f70f37bbf08
child 9080 9b42757d7e71
--- a/QTfrontend/net/proto.h	Wed Mar 20 09:13:05 2013 +0400
+++ b/QTfrontend/net/proto.h	Wed Mar 20 23:18:46 2013 +0100
@@ -35,6 +35,12 @@
         static QByteArray & addStringListToBuffer(QByteArray & buf, const QStringList & strList);
         static QString formatChatMsg(const QString & nick, const QString & msg);
         static QString formatChatMsgForFrontend(const QString & msg);
+        /**
+         * @brief Determines if a chat string represents a chat action and returns the action.
+         * @param string chat string
+         * @return the action-message or NULL if message is no action
+         */
+        static QString chatStringToAction(const QString & string);
 };
 
 #endif // _PROTO_H