+protected:
+ void customEvent(QEvent* event) override;
+
+private slots:
+ void removeClient(Peer* peer);
+
+ void recvStatusMsgFromServer(QString msg);
+ void recvMessageFromServer(RawMessage msg);
+
+ void destroyNetwork(NetworkId);
+
+ void clientsConnected();
+ void clientsDisconnected();
+
+ void updateIdentityBySender();
+
+ void saveSessionState() const;
+
+ void onNetworkDisconnected(NetworkId networkId);
+
+private:
+ void processMessages();
+
+ void loadSettings();
+
+ /// 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;
+
+ /**
+ * 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;
+ MetricsServer* _metricsServer{nullptr};