maybe clicking the tray icon toggles minimize to tray again. maybe it won't. maybe...
[quassel.git] / src / qtui / mainwin.h
index 2d80e64..682b37b 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  *
@@ -67,7 +67,6 @@ class MainWin
     BufferView *allBuffersView() const;
 
     inline QSystemTrayIcon *systemTrayIcon() const;
-    inline BufferWidget *bufferWidget() const;
 
     virtual bool event(QEvent *event);
 
@@ -86,8 +85,7 @@ class MainWin
   protected slots:
     void connectedToCore();
     void setConnectedState();
-    void updateLagIndicator(int lag);
-    void securedConnection();
+    void updateLagIndicator(int lag = -1);
     void disconnectedFromCore();
     void setDisconnectedState();
     void systrayActivated(QSystemTrayIcon::ActivationReason);
@@ -151,7 +149,8 @@ class MainWin
     void setupTitleSetter();
 
     void updateIcon();
-    void toggleVisibility();
+    void hideToTray();
+    void toggleMinimizedToTray();
     void enableMenus();
 
     QSystemTrayIcon *_trayIcon;
@@ -170,8 +169,4 @@ QSystemTrayIcon *MainWin::systemTrayIcon() const {
   return _trayIcon;
 }
 
-BufferWidget *MainWin::bufferWidget() const {
-  return _bufferWidget;
-}
-
 #endif