X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=bc4ba1ee29e8deb6fc47674e3ddcf6c48ec4618f;hb=846ce2425763e175e0453f2b3c3a2feab35e58c9;hp=c905e089dcfb1a519d34c54599871f066a733691;hpb=419782afd8deeccb1fcd456fcdda2691aa11e406;p=quassel.git diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index c905e089..bc4ba1ee 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -42,6 +42,8 @@ class BufferHotListFilter; class BufferView; class BufferViewConfig; class ClientBufferViewConfig; +class CoreAccount; +class CoreConnectionStatusWidget; class BufferViewDock; class BufferWidget; class InputWidget; @@ -73,6 +75,8 @@ class MainWin void addBufferView(ClientBufferViewConfig *config); BufferView *allBuffersView() const; + BufferWidget *bufferWidget() const { return _bufferWidget; } + inline SystemTray *systemTray() const; bool event(QEvent *event); @@ -91,6 +95,9 @@ class MainWin //! Bring window to front and focus it void forceActivated(); + //! Quit application + void quit(); + protected: void closeEvent(QCloseEvent *event); void changeEvent(QEvent *event); @@ -100,7 +107,6 @@ class MainWin protected slots: void connectedToCore(); void setConnectedState(); - void updateLagIndicator(int lag = -1); void disconnectedFromCore(); void setDisconnectedState(); @@ -108,18 +114,28 @@ class MainWin void addBufferView(int bufferViewConfigId); void awayLogDestroyed(); void removeBufferView(int bufferViewConfigId); + void currentBufferChanged(BufferId); void messagesInserted(const QModelIndex &parent, int start, int end); void showAboutDlg(); void showChannelList(NetworkId netId = NetworkId()); - void startInternalCore(); - void showCoreConnectionDlg(bool autoConnect = false); + void showCoreConnectionDlg(); + void showCoreConfigWizard(const QVariantList &); void showCoreInfoDlg(); void showAwayLog(); void showSettingsDlg(); void showNotificationsDlg(); + void showIgnoreList(QString newRule = QString()); #ifdef HAVE_KDE void showShortcutsDlg(); #endif + void handleCoreConnectionError(const QString &errorMsg); + void userAuthenticationRequired(CoreAccount *, bool *valid, const QString &errorMessage); + void handleNoSslInClient(bool *accepted); + void handleNoSslInCore(bool *accepted); +#ifdef HAVE_SSL + void handleSslErrors(const QSslSocket *socket, bool *accepted, bool *permanently); +#endif + void on_actionConfigureNetworks_triggered(); void on_actionConfigureViews_triggered(); void on_actionLockLayout_toggled(bool lock); @@ -135,8 +151,8 @@ class MainWin void clientNetworkUpdated(); void connectOrDisconnectFromNet(); + void saveMenuBarStatus(bool enabled); void saveStatusBarStatus(bool enabled); - void aboutToQuit(); void loadLayout(); void saveLayout(); @@ -152,9 +168,8 @@ class MainWin KHelpMenu *_kHelpMenu; #endif - QLabel *coreLagLabel; - QLabel *sslLabel; - MsgProcessorStatusWidget *msgProcessorStatusWidget; + MsgProcessorStatusWidget *_msgProcessorStatusWidget; + CoreConnectionStatusWidget *_coreConnectionStatusWidget; TitleSetter _titleSetter; @@ -189,9 +204,10 @@ class MainWin QWidget *_awayLog; + bool _layoutLoaded; + QSize _normalSize; //!< Size of the non-maximized window QPoint _normalPos; //!< Position of the non-maximized window - bool _isHidden; #ifdef Q_WS_WIN DWORD dwTickCount;