-public slots:
- void handleJoin(QString, QList<QByteArray>);
- void handleKick(QString, QList<QByteArray>);
- void handleMode(QString, QList<QByteArray>);
- void handleNick(QString, QList<QByteArray>);
- void handleNotice(QString, QList<QByteArray>);
- void handlePart(QString, QList<QByteArray>);
- void handlePing(QString, QList<QByteArray>);
- void handlePrivmsg(QString, QList<QByteArray>);
- void handleQuit(QString, QList<QByteArray>);
- void handleTopic(QString, QList<QByteArray>);
-
- void handle001(QString, QList<QByteArray>); // RPL_WELCOME
- void handle005(QString, QList<QByteArray>); // RPL_ISUPPORT
- void handle301(QString, QList<QByteArray>); // RPL_AWAY
- void handle311(QString, QList<QByteArray>); // RPL_WHOISUSER
- void handle312(QString, QList<QByteArray>); // RPL_WHOISSERVER
- void handle313(QString, QList<QByteArray>); // RPL_WHOISOPERATOR
- void handle314(QString, QList<QByteArray>); // RPL_WHOWASUSER
- void handle315(QString, QList<QByteArray>); // RPL_ENDOFWHO
- void handle317(QString, QList<QByteArray>); // RPL_WHOISIDLE
- void handle318(QString, QList<QByteArray>); // RPL_ENDOFWHOIS
- void handle319(QString, QList<QByteArray>); // RPL_WHOISCHANNELS
- void handle331(QString, QList<QByteArray>); // RPL_NOTOPIC
- void handle332(QString, QList<QByteArray>); // RPL_TOPIC
- void handle333(QString, QList<QByteArray>); // Topic set by...
- void handle352(QString, QList<QByteArray>); // RPL_WHOREPLY
- void handle353(QString, QList<QByteArray>); // RPL_NAMREPLY
- void handle369(QString, QList<QByteArray>); // RPL_ENDOFWHOWAS
- void handle432(QString, QList<QByteArray>); // ERR_ERRONEUSNICKNAME
- void handle433(QString, QList<QByteArray>); // ERR_NICKNAMEINUSE
-
- void defaultHandler(QString cmd, QString prefix, QList<QByteArray> params);
+private slots:
+ //! Joins after a netsplit
+ /** This slot handles a bulk-join after a netsplit is over
+ * \param channel The channel the users joined
+ * \param users The list of users that joind the channel
+ * \param modes The list of modes the users get set
+ * \param quitMessage The message we received when the netsplit occured
+ */
+ void handleNetsplitJoin(const QString &channel, const QStringList &users, const QStringList &modes, const QString &quitMessage);
+
+ //! Quits after a netsplit
+ /** This slot handles a bulk-quit after a netsplit occured
+ * \param channel The channel the users quitted
+ * \param users The list of users that got split
+ * \param quitMessage The message we received when the netsplit occured
+ */
+ void handleNetsplitQuit(const QString &channel, const QStringList &users, const QString &quitMessage);
+
+ //! Netsplit finished
+ /** This slot deletes the netsplit object that sent the finished() signal
+ */
+ void handleNetsplitFinished();
+
+ void handleEarlyNetsplitJoin(const QString &channel, const QStringList &users, const QStringList &modes);
+
+ //! Destroy any existing netsplits
+ /** This slot deletes all netsplit objects
+ * Used to get rid of existing netsplits on network reconnect
+ */
+ void destroyNetsplits();