+ void disconnectFromCore();
+
+protected:
+ virtual void customEvent(QEvent *event);
+
+private slots:
+ void removeClient(Peer *peer);
+
+ void recvStatusMsgFromServer(QString msg);
+ void recvMessageFromServer(NetworkId networkId, Message::Type, BufferInfo::Type, const QString &target, const QString &text, const QString &sender = "", Message::Flags flags = Message::None);
+
+ void destroyNetwork(NetworkId);
+
+ void scriptRequest(QString script);
+
+ void clientsConnected();
+ void clientsDisconnected();
+
+ void updateIdentityBySender();
+
+ void saveSessionState() const;
+
+ void onNetworkDisconnected(NetworkId networkId);
+
+private:
+ void processMessages();
+
+ void loadSettings();
+ void initScriptEngine();
+
+ /// Hook for converting events to the old displayMsg() handlers
+ Q_INVOKABLE void processMessageEvent(MessageEvent *event);
+
+ UserId _user;
+
+ /// Whether or not strict ident mode is enabled, locking users' idents to Quassel username
+ bool _strictIdentEnabled;
+
+ SignalProxy *_signalProxy;
+ CoreAliasManager _aliasManager;
+
+ QHash<IdentityId, CoreIdentity *> _identities;
+ QHash<NetworkId, CoreNetwork *> _networks;
+ QSet<NetworkId> _networksPendingDisconnect;
+
+ CoreBufferSyncer *_bufferSyncer;
+ CoreBacklogManager *_backlogManager;
+ CoreBufferViewManager *_bufferViewManager;
+ CoreDccConfig *_dccConfig;
+ CoreIrcListHelper *_ircListHelper;
+ CoreNetworkConfig *_networkConfig;
+ CoreInfo *_coreInfo;
+ CoreTransferManager *_transferManager;
+
+ EventManager *_eventManager;
+ EventStringifier *_eventStringifier; // should eventually move into client
+ CoreSessionEventProcessor *_sessionEventProcessor;
+ CtcpParser *_ctcpParser;
+ IrcParser *_ircParser;
+
+ QScriptEngine *scriptEngine;
+
+ /**
+ * This method obtains the prefixes of the message's sender within a channel, by looking up their channelmodes, and
+ * processing them to prefixes based on the network's settings.
+ * @param sender The hostmask of the sender
+ * @param bufferInfo The BufferInfo object of the buffer
+ */
+ QString senderPrefixes(const QString &sender, const BufferInfo &bufferInfo) const;
+
+ /**
+ * This method obtains the realname of the message's sender.
+ * @param sender The hostmask of the sender
+ * @param networkId The network the user is on
+ */
+ QString realName(const QString &sender, NetworkId networkId) const;
+
+ /**
+ * This method obtains the avatar of the message's sender.
+ * @param sender The hostmask of the sender
+ * @param networkId The network the user is on
+ */
+ QString avatarUrl(const QString &sender, NetworkId networkId) const;
+ QList<RawMessage> _messageQueue;
+ bool _processMessages;
+ CoreIgnoreListManager _ignoreListManager;
+ CoreHighlightRuleManager _highlightRuleManager;