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 * $Id$ 00015 */ 00016 00017 #ifndef IRC_UTIL_H 00018 #define IRC_UTIL_H 00019 00020 #include <irc.h> 00021 00022 namespace Irc 00023 { 00024 class IRC_EXPORT Util 00025 { 00026 public: 00027 static QString nickFromTarget(const QString& target); 00028 static QString hostFromTarget(const QString& target); 00029 }; 00030 } 00031 00032 #endif // IRC_UTIL_H