Communi 1.0.0
A cross-platform IRC client library written with Qt 4
|
00001 /* 00002 * Copyright (C) 2008-2011 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 IRCSENDER_H 00016 #define IRCSENDER_H 00017 00018 #include <IrcGlobal> 00019 #include <QtCore/qstring.h> 00020 #include <QtCore/qmetatype.h> 00021 00022 class COMMUNI_EXPORT IrcSender 00023 { 00024 public: 00025 IrcSender(const QString& prefix = QString()); 00026 00027 bool isValid() const; 00028 00029 QString prefix() const; 00030 void setPrefix(const QString& prefix); 00031 00032 QString name() const { return n; } 00033 void setName(const QString& name) { n = name; } 00034 00035 QString user() const { return u; } 00036 void setUser(const QString& user) { u = user; } 00037 00038 QString host() const { return h; } 00039 void setHost(const QString& host) { h = host; } 00040 00041 private: 00042 QString n; 00043 QString u; 00044 QString h; 00045 }; 00046 00047 Q_DECLARE_METATYPE(IrcSender) 00048 00049 #endif // IRCSENDER_H