X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fnetworkinfo.h;h=f2febc62912065b9c9682ffa33f6d1d26a79b26d;hp=8be0d98d3ace55aa26529750ba685e4700369a84;hb=d6b056e936ec441258d291b7a8af7b83f9f53016;hpb=a7f5d6a23f7214b11f6db85346a67fd7d02767da diff --git a/src/common/networkinfo.h b/src/common/networkinfo.h index 8be0d98d..f2febc62 100644 --- a/src/common/networkinfo.h +++ b/src/common/networkinfo.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -42,7 +42,7 @@ class NetworkInfo : public QObject { public: NetworkInfo(const uint &networkid, QObject *parent = 0); - // virtual ~NetworkInfo(); + //virtual ~NetworkInfo(); uint networkId() const; bool initialized() const; @@ -89,6 +89,7 @@ public slots: void removeSupport(const QString ¶m); inline void addIrcUser(const QString &hostmask) { newIrcUser(hostmask); } + void removeIrcUser(QString nick); //init geters QVariantMap initSupports() const; @@ -105,11 +106,12 @@ public slots: // these slots are to keep the hashlists of all users and the // channel lists up to date void ircUserNickChanged(QString newnick); + void setInitialized(); +private slots: void ircUserDestroyed(); void channelDestroyed(); - - void setInitialized(); + void removeIrcUser(IrcUser *ircuser); signals: void networkNameSet(const QString &networkName); @@ -122,6 +124,8 @@ signals: void ircUserAdded(QString hostmask); void ircChannelAdded(QString channelname); + void ircUserRemoved(QString nick); + void initDone(); void ircUserInitDone(); void ircChannelInitDone(); @@ -146,6 +150,7 @@ private: QPointer _proxy; void determinePrefixes(); + }; #endif