QTfrontend/net/proto.h
changeset 15909 7409084d891f
parent 12897 fc47fc4af6bd
equal deleted inserted replaced
15908:014f4edd0421 15909:7409084d891f
    33         static QByteArray & addStringToBuffer(QByteArray & buf, const QString & string);
    33         static QByteArray & addStringToBuffer(QByteArray & buf, const QString & string);
    34         static QByteArray & addByteArrayToBuffer(QByteArray & buf, const QByteArray & msg);
    34         static QByteArray & addByteArrayToBuffer(QByteArray & buf, const QByteArray & msg);
    35         static QByteArray & addStringListToBuffer(QByteArray & buf, const QStringList & strList);
    35         static QByteArray & addStringListToBuffer(QByteArray & buf, const QStringList & strList);
    36         static QString formatChatMsg(const QString & nick, const QString & msg);
    36         static QString formatChatMsg(const QString & nick, const QString & msg);
    37         static QString formatChatMsgForFrontend(const QString & msg);
    37         static QString formatChatMsgForFrontend(const QString & msg);
       
    38         static QString formatDirectMsg(const QString & myNick, const QString & nick,
       
    39                                        const QString & msg, bool isEcho);
    38         /**
    40         /**
    39          * @brief Determines if a chat string represents a chat action and returns the action.
    41          * @brief Determines if a chat string represents a chat action and returns the action.
    40          * @param string chat string
    42          * @param string chat string
    41          * @return the action-message or NULL if message is no action
    43          * @return the action-message or NULL if message is no action
    42          */
    44          */