QTfrontend/net/proto.h
changeset 6616 f77bb02b669f
parent 6060 fdfc01419815
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    24 #include <QStringList>
    24 #include <QStringList>
    25 
    25 
    26 
    26 
    27 class HWProto : public QObject
    27 class HWProto : public QObject
    28 {
    28 {
    29     Q_OBJECT
    29         Q_OBJECT
    30 
    30 
    31 public:
    31     public:
    32     HWProto();
    32         HWProto();
    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 };
    38 };
    39 
    39 
    40 #endif // _PROTO_H
    40 #endif // _PROTO_H