Communi  1.1.0
A cross-platform IRC client library written with Qt 4
 All Classes Files Functions Enumerations Enumerator Properties Macros Groups Pages
ircutil.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2008-2012 J-P Nurmi <jpnurmi@gmail.com>
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 * License for more details.
13 */
14 
15 #ifndef IRCUTIL_H
16 #define IRCUTIL_H
17 
18 #include <IrcGlobal>
19 #include <QString>
20 
21 class COMMUNI_EXPORT IrcUtil
22 {
23 public:
24  static QString messageToHtml(const QString& message);
25  static QString colorCodeToName(int code, const QString& defaultColor = QLatin1String("black"));
26 };
27 
28 #endif // IRCUTIL_H