#include "coresession.h"
class CoreIdentity;
-class IrcServerHandler;
class CoreUserInputHandler;
-class CtcpHandler;
class CoreIgnoreListManager;
+class Event;
class CoreNetwork : public Network {
SYNCABLE_OBJECT
inline CoreSession *coreSession() const { return _coreSession; }
inline CoreNetworkConfig *networkConfig() const { return coreSession()->networkConfig(); }
- inline IrcServerHandler *ircServerHandler() const { return _ircServerHandler; }
inline CoreUserInputHandler *userInputHandler() const { return _userInputHandler; }
- inline CtcpHandler *ctcpHandler() const { return _ctcpHandler; }
inline CoreIgnoreListManager *ignoreListManager() { return coreSession()->ignoreListManager(); }
//! Decode a string using the server (network) decoding.
void quitRequested(NetworkId networkId);
void sslErrors(const QVariant &errorData);
+ void newEvent(Event *event);
+
protected:
inline virtual IrcChannel *ircChannelFactory(const QString &channelname) { return new CoreIrcChannel(channelname, this); }
inline virtual IrcUser *ircUserFactory(const QString &hostmask) { return new CoreIrcUser(hostmask, this); }
QTcpSocket socket;
#endif
- IrcServerHandler *_ircServerHandler;
CoreUserInputHandler *_userInputHandler;
- CtcpHandler *_ctcpHandler;
QHash<QString, QString> _channelKeys; // stores persistent channels and their passwords, if any