- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

# include/ircutil.h

    00001 /*
    00002 * Copyright (C) 2008-2009 J-P Nurmi jpnurmi@gmail.com
    00003 *
    00004 * This library is free software; you can redistribute it and/or modify it
    00005 * under the terms of the GNU Lesser General Public License as published by
    00006 * the Free Software Foundation; either version 2 of the License, or (at your
    00007 * option) any later version.
    00008 *
    00009 * This library is distributed in the hope that it will be useful, but WITHOUT
    00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    00011 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
    00012 * License for more details.
    00013 */
    00014
    00015 #ifndef IRC_UTIL_H
    00016 #define IRC_UTIL_H
    00017
    00018 #include <irc.h>
    00019
    00020 namespace Irc
    00021 {
    00022     class IRC_EXPORT Util
    00023     {
    00024     public:
    00025         static QString nickFromTarget(const QString& target);
    00026         static QString hostFromTarget(const QString& target);
    00027         static QString messageToHtml(const QString& message);
    00028         static QString colorNameFromCode(int code);
    00029     };
    00030 }
    00031
    00032 #endif // IRC_UTIL_H