X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=505bb61447db63cbec178bc2a60afce14e1eff0d;hb=27d4c8abb89e35ac55c68ef141ed75c1027e5c05;hp=deb25002e4994c5b11a3d106a801b501dfb3f430;hpb=8e93326fd70af3c0accc599770796619ef3cee6e;p=quassel.git diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index deb25002..505bb614 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -68,7 +68,6 @@ class MainWin public: MainWin(QWidget *parent = 0); - virtual ~MainWin(); void init(); @@ -100,8 +99,7 @@ public slots: void showMigrationWarning(bool show); - //! Quit application - void quit(); + void onExitRequested(const QString &reason); protected: void closeEvent(QCloseEvent *event); @@ -125,10 +123,13 @@ private slots: /** * Show the channel list dialog for the network, optionally searching by channel name * - * @param networkId Network ID for associated network - * @param channelFilters Partial channel name to search for, or empty to show all + * @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 netId = {}, const QString &channelFilters = {}); + void showChannelList(NetworkId netId = {}, const QString &channelFilters = {}, + bool listImmediately = false); + void showNetworkConfig(NetworkId netId = NetworkId()); void showCoreConnectionDlg(); void showCoreConfigWizard(const QVariantList &, const QVariantList &);