+ void processMessages();
+
+ void loadSettings();
+ void initScriptEngine();
+
+ /// Hook for converting events to the old displayMsg() handlers
+ Q_INVOKABLE void processMessageEvent(MessageEvent *event);
+
+ UserId _user;
+
+ SignalProxy *_signalProxy;
+ CoreAliasManager _aliasManager;
+ // QHash<NetworkId, NetworkConnection *> _connections;
+ QHash<NetworkId, CoreNetwork *> _networks;
+ // QHash<NetworkId, CoreNetwork *> _networksToRemove;
+ QHash<IdentityId, CoreIdentity *> _identities;
+
+ CoreBufferSyncer *_bufferSyncer;
+ CoreBacklogManager *_backlogManager;
+ CoreBufferViewManager *_bufferViewManager;
+ CoreIrcListHelper *_ircListHelper;
+ CoreNetworkConfig *_networkConfig;
+ CoreCoreInfo _coreInfo;
+ CoreTransferManager *_transferManager;
+
+ EventManager *_eventManager;
+ EventStringifier *_eventStringifier; // should eventually move into client
+ CoreSessionEventProcessor *_sessionEventProcessor;
+ CtcpParser *_ctcpParser;
+ IrcParser *_ircParser;
+
+ QScriptEngine *scriptEngine;
+
+ QList<RawMessage> _messageQueue;
+ bool _processMessages;
+ CoreIgnoreListManager _ignoreListManager;
+};
+
+
+struct RawMessage {
+ NetworkId networkId;
+ Message::Type type;
+ BufferInfo::Type bufferType;
+ QString target;
+ QString text;
+ QString sender;
+ Message::Flags flags;
+ RawMessage(NetworkId networkId, Message::Type type, BufferInfo::Type bufferType, const QString &target, const QString &text, const QString &sender, Message::Flags flags)
+ : networkId(networkId), type(type), bufferType(bufferType), target(target), text(text), sender(sender), flags(flags) {}