/***************************************************************************
- * 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 *
public:
NetworkInfo(const uint &networkid, QObject *parent = 0);
- // virtual ~NetworkInfo();
+ //virtual ~NetworkInfo();
uint networkId() const;
bool initialized() const;
QString support(const QString ¶m) const;
IrcUser *newIrcUser(const QString &hostmask);
- IrcUser *ircUser(const QString &nickname) const;
+ IrcUser *ircUser(QString nickname) const;
QList<IrcUser *> ircUsers() const;
IrcChannel *newIrcChannel(const QString &channelname);
- IrcChannel *ircChannel(const QString &channelname);
+ IrcChannel *ircChannel(QString channelname);
QList<IrcChannel *> ircChannels() const;
public slots:
void removeSupport(const QString ¶m);
inline void addIrcUser(const QString &hostmask) { newIrcUser(hostmask); }
+ void removeIrcUser(QString nick);
//init geters
QVariantMap initSupports() const;
// 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);
void ircUserAdded(QString hostmask);
void ircChannelAdded(QString channelname);
+ void ircUserRemoved(QString nick);
+
void initDone();
void ircUserInitDone();
void ircChannelInitDone();
QPointer<SignalProxy> _proxy;
void determinePrefixes();
+
};
#endif