clang-tidy: Mark several settingspage methods as final
[quassel.git] / src / uisupport / networkmodelcontroller.h
index 0885a4a..ea7ab65 100644 (file)
@@ -18,8 +18,9 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef NETWORKMODELCONTROLLER_H_
-#define NETWORKMODELCONTROLLER_H_
+#pragma once
+
+#include "uisupport-export.h"
 
 #include <QDialog>
 
@@ -31,7 +32,7 @@ class QComboBox;
 class QDialogButtonBox;
 class QLineEdit;
 
-class NetworkModelController : public QObject
+class UISUPPORT_EXPORT NetworkModelController : public QObject
 {
     Q_OBJECT
 
@@ -75,6 +76,7 @@ public:
         JoinChannel = 0x1000,
         ShowChannelList = 0x2000,
         ShowIgnoreList = 0x3000,
+        ShowNetworkConfig = 0x4000,
 
         // Nick actions
         NickMask = 0xff0000,
@@ -153,7 +155,17 @@ protected slots:
     virtual void actionTriggered(QAction *);
 
 signals:
-    void showChannelList(NetworkId);
+    /**
+     * Request to show the channel list dialog for the network, optionally searching by channel name
+     *
+     * @see MainWin::showChannelList()
+     *
+     * @param networkId        Network ID for associated network
+     * @param channelFilters   Partial channel name to search for, or empty to show all
+     * @param listImmediately  If true, immediately list channels, otherwise just show dialog
+     */
+    void showChannelList(NetworkId, const QString &, bool);
+    void showNetworkConfig(NetworkId);
     void showIgnoreList(QString);
 
 protected:
@@ -211,5 +223,3 @@ MessageFilter *NetworkModelController::messageFilter() const { return _messageFi
 QString NetworkModelController::contextItem() const { return _contextItem; }
 QObject *NetworkModelController::receiver() const { return _receiver; }
 const char *NetworkModelController::method() const { return _method; }
-
-#endif