MainWindow.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*_############################################################################
  2. _##
  3. _## MainWindow.h
  4. _##
  5. _## SNMP++v3.2.23
  6. _## -----------------------------------------------
  7. _## Copyright (c) 2001-2007 Jochen Katz, Frank Fock
  8. _##
  9. _## This software is based on SNMP++2.6 from Hewlett Packard:
  10. _##
  11. _## Copyright (c) 1996
  12. _## Hewlett-Packard Company
  13. _##
  14. _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
  15. _## Permission to use, copy, modify, distribute and/or sell this software
  16. _## and/or its documentation is hereby granted without fee. User agrees
  17. _## to display the above copyright notice and this license notice in all
  18. _## copies of the software and any documentation of the software. User
  19. _## agrees to assume all liability for the use of the software;
  20. _## Hewlett-Packard and Jochen Katz make no representations about the
  21. _## suitability of this software for any purpose. It is provided
  22. _## "AS-IS" without warranty of any kind, either express or implied. User
  23. _## hereby grants a royalty-free license to any and all derivatives based
  24. _## upon this software code base.
  25. _##
  26. _## Stuttgart, Germany, Sun Nov 11 15:10:59 CET 2007
  27. _##
  28. _##########################################################################*/
  29. #include "MainWindowPrivate.h"
  30. #include "snmp_pp/snmp_pp.h"
  31. #include <qtimer.h>
  32. #ifdef SNMP_PP_NAMESPACE
  33. using namespace Snmp_pp;
  34. #endif
  35. class MainWindow : public MainWindowPrivate
  36. {
  37. Q_OBJECT
  38. public:
  39. MainWindow( QWidget* parent = 0, const char* name = 0, WFlags fl = WType_TopLevel );
  40. ~MainWindow();
  41. void async_callback(int reason, Snmp *snmp, Pdu &pdu, SnmpTarget &target);
  42. protected slots:
  43. virtual void push_button_get_next_clicked();
  44. virtual void push_button_broadcast_clicked();
  45. virtual void timer_expired();
  46. virtual void edit_properties_action_activated();
  47. virtual void push_button_traps_toggled(bool isOn);
  48. private:
  49. void update_combobox_sec_name();
  50. Snmp *snmp;
  51. v3MP *v3mp;
  52. QTimer timer;
  53. };