2
kircmessageutil.h - Some utilities to build some message.
4
Copyright (c) 2005-2007 by Michel Hermier <michel.hermier@gmail.com>
6
Kopete (c) 2005-2007 by the Kopete developers <kopete-devel@kde.org>
8
*************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
*************************************************************************
18
#ifndef KIRCMESSAGEUTIL_H
19
#define KIRCMESSAGEUTIL_H
24
namespace MessageUtil {
26
extern QByteArray quote(const QByteArray &buffer);
27
extern QByteArray unquote(const QByteArray &buffer);
31
extern QByteArray quoteCtcp(const QByteArray &buffer);
32
extern QByteArray unquoteCtcp(const QByteArray &buffer);
34
//extern void writeCtcpQueryMessage(const QString &to, const QString &ctcpMessage, QTextCodec *codec = 0);
35
//extern void writeCtcpReplyMessage(const QString &to, const QString &ctcpMessage, QTextCodec *codec = 0);
37
//extern void writeCtcpErrorMessage(const QString &to, const QString &ctcpLine, const QString &errorMsg, QTextCodec *codec = 0);