Event backend porting
[quassel.git] / src / core / coreirclisthelper.cpp
index dbcdcc4..0545471 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 
 #include "coreirclisthelper.h"
 
-#include "networkconnection.h"
-#include "userinputhandler.h"
+#include "corenetwork.h"
+#include "coreuserinputhandler.h"
 
+INIT_SYNCABLE_OBJECT(CoreIrcListHelper)
 QVariantList CoreIrcListHelper::requestChannelList(const NetworkId &netId, const QStringList &channelFilters) {
   if(_finishedChannelLists.contains(netId))
     return _finishedChannelLists.take(netId);
@@ -44,10 +45,10 @@ bool CoreIrcListHelper::addChannel(const NetworkId &netId, const QString &channe
 }
 
 bool CoreIrcListHelper::dispatchQuery(const NetworkId &netId, const QString &query) {
-  NetworkConnection *networkConnection = coreSession()->networkConnection(netId);
-  if(networkConnection) {
+  CoreNetwork *network = coreSession()->network(netId);
+  if(network) {
     _channelLists[netId] = QList<ChannelDescription>();
-    networkConnection->userInputHandler()->handleList(BufferInfo(), query);
+    network->userInputHandler()->handleList(BufferInfo(), query);
     _queryTimeout[startTimer(10000)] = netId;
     return true;
   } else {