Message object cleanup
[quassel.git] / src / common / irclisthelper.h
index 8bf7f94..b4e8b95 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  *
@@ -36,7 +36,7 @@ class IrcListHelper : public SyncableObject {
   Q_OBJECT
 
 public:
-  inline IrcListHelper(QObject *parent = 0) : SyncableObject(parent) {};
+  inline IrcListHelper(QObject *parent = 0) : SyncableObject(parent) { setInitialized(); };
 
   struct ChannelDescription {
     QString channelName;
@@ -49,10 +49,12 @@ public slots:
   inline virtual QVariantList requestChannelList(const NetworkId &netId, const QStringList &channelFilters) { emit channelListRequested(netId, channelFilters); return QVariantList(); }
   inline virtual void receiveChannelList(const NetworkId &, const QStringList &, const QVariantList &) {};
   inline virtual void reportFinishedList(const NetworkId &netId) { emit finishedListReported(netId); }
+  inline virtual void reportError(const QString &error) { emit errorReported(error); }
 
 signals:
   void channelListRequested(const NetworkId &netId, const QStringList &channelFilters);
   void finishedListReported(const NetworkId &netId);
+  void errorReported(const QString &error);
 };
 
 #endif //IRCLISTHELPER_H