This should fix a bug resulting in a crash, when a IrcUser object was not destroyed...
[quassel.git] / src / common / networkinfo.h
index 776c7b7..a457730 100644 (file)
@@ -89,6 +89,7 @@ public slots:
   void removeSupport(const QString &param);
 
   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<SignalProxy> _proxy;
   void determinePrefixes();
+
 };
 
 #endif