# include <windows.h>
#endif
-#include <QSystemTrayIcon>
-
#include "qtui.h"
#include "titlesetter.h"
#include "uisettings.h"
void addBufferView(ClientBufferViewConfig *config);
BufferView *allBuffersView() const;
- BufferWidget *bufferWidget() const { return _bufferWidget; }
+ inline BufferWidget *bufferWidget() const { return _bufferWidget; }
- inline SystemTray *systemTray() const;
+#ifndef QT_NO_SYSTEMTRAYICON
+ inline SystemTray *systemTray() const { return _systemTray; }
+#endif
bool event(QEvent *event);
public slots:
void showStatusBarMessage(const QString &message);
+#ifndef QT_NO_SYSTEMTRAYICON
void toggleMinimizedToTray();
+#endif
//! Bring window to front and focus it
void forceActivated();
protected slots:
void connectedToCore();
void setConnectedState();
- void updateLagIndicator(int lag = -1);
void disconnectedFromCore();
void setDisconnectedState();
void showAboutDlg();
void showChannelList(NetworkId netId = NetworkId());
void showCoreConnectionDlg();
+ void showCoreConfigWizard(const QVariantList &);
void showCoreInfoDlg();
void showAwayLog();
void showSettingsDlg();
#ifdef HAVE_KDE
void showShortcutsDlg();
#endif
- void startInternalCore();
+ void handleCoreConnectionError(const QString &errorMsg);
void userAuthenticationRequired(CoreAccount *, bool *valid, const QString &errorMessage);
void handleNoSslInClient(bool *accepted);
void handleNoSslInCore(bool *accepted);
KHelpMenu *_kHelpMenu;
#endif
- QLabel *coreLagLabel;
- QLabel *sslLabel;
MsgProcessorStatusWidget *_msgProcessorStatusWidget;
CoreConnectionStatusWidget *_coreConnectionStatusWidget;
void updateIcon();
void enableMenus();
+#ifndef QT_NO_SYSTEMTRAYICON
void hideToTray();
-
SystemTray *_systemTray;
+#endif
QList<BufferViewDock *> _bufferViews;
BufferWidget *_bufferWidget;
friend class QtUi;
};
-SystemTray *MainWin::systemTray() const {
- return _systemTray;
-}
-
#endif