X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=c1f96f2091e6d6af2358ede3f0c7c4a14b249731;hb=d54b44bc5b6e1ff4308f9d143babf29028ae47cd;hp=7b458509bc6ddbd1c27a156b174125e611ec6d6e;hpb=6f0a153a674317d77233139fc50a2985af86e36e;p=quassel.git diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index 7b458509..c1f96f20 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -41,10 +41,9 @@ #include "coresession.h" class CoreIdentity; -class IrcServerHandler; class CoreUserInputHandler; -class CtcpHandler; class CoreIgnoreListManager; +class Event; class CoreNetwork : public Network { SYNCABLE_OBJECT @@ -59,9 +58,7 @@ public: 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. @@ -115,6 +112,7 @@ public slots: // Blowfish stuff #ifdef HAVE_QCA2 + Cipher *cipher(const QString &recipient) const; QByteArray cipherKey(const QString &recipient) const; void setCipherKey(const QString &recipient, const QByteArray &key); #endif @@ -147,6 +145,8 @@ signals: 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); } @@ -192,9 +192,7 @@ private: QTcpSocket socket; #endif - IrcServerHandler *_ircServerHandler; CoreUserInputHandler *_userInputHandler; - CtcpHandler *_ctcpHandler; QHash _channelKeys; // stores persistent channels and their passwords, if any