KNemo – network interfaces monitor for systray
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
2.3 KiB

  1. /* This file is part of KNemo
  2. Copyright (C) 2004, 2006 Percy Leonhardt <percy@eris23.de>
  3. KNemo is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU Library General Public License as
  5. published by the Free Software Foundation; either version 2 of
  6. the License, or (at your option) any later version.
  7. KNemo is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef INTERFACESTATUSDIALOG_H
  17. #define INTERFACESTATUSDIALOG_H
  18. #include <tqwidget.h>
  19. #include "interfacestatusdlg.h"
  20. class TQTimer;
  21. class Interface;
  22. /**
  23. * This class serves as the main window for KNemo. It handles the
  24. * menus, toolbars, and status bars.
  25. *
  26. * @short Main window class
  27. * @author Percy Leonhardt <percy@eris23.de>
  28. */
  29. class InterfaceStatusDialog : public InterfaceStatusDlg
  30. {
  31. Q_OBJECT
  32. public:
  33. /**
  34. * Default Constructor
  35. */
  36. InterfaceStatusDialog( Interface* interface,
  37. TQWidget* parent = 0L, const char* name = 0L );
  38. /**
  39. * Default Destructor
  40. */
  41. virtual ~InterfaceStatusDialog();
  42. /**
  43. * Implemented to store position.
  44. */
  45. void hide();
  46. void show();
  47. /**
  48. * Enable or disable the statistics group when the user turned statistics on or off.
  49. */
  50. void setStatisticsGroupEnabled( bool enabled );
  51. public slots:
  52. /**
  53. * Enable the network groups when the interface is connected
  54. */
  55. void enableNetworkGroups( int );
  56. /**
  57. * Disable the network groups when the interface is not connected
  58. */
  59. void disableNetworkGroups( int );
  60. /**
  61. * Update the statistics tab when data changed
  62. */
  63. void statisticsChanged();
  64. private slots:
  65. void updateDialog();
  66. private:
  67. TQPoint mPos;
  68. bool mPosInitialized;
  69. TQTimer* mTimer;
  70. Interface* mInterface;
  71. };
  72. #endif // INTERFACESTATUSDIALOG_H