diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-12 14:09:35 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-18 20:17:20 +0000 |
commit | 0e8cc9ab0ad41d09cbc886d1283266aea989c563 (patch) | |
tree | 4baceddfc9d74c8754dce9226f82678bf4a050ae /ui/qt/multicast_statistics_dialog.h | |
parent | 9a3d4e6eef9851f7368c89364add3759919b8f95 (diff) |
UDP multicast stream dialog.
Add the UDP multicast stream dialog. Abuse TapParameterDialog a bit more
so that we can edit parameters.
Remove some unused struct members and an unused function.
Change-Id: I962c70344e792f0959527e4bcba8a20bd7e8acf9
Reviewed-on: https://code.wireshark.org/review/10084
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/multicast_statistics_dialog.h')
-rw-r--r-- | ui/qt/multicast_statistics_dialog.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/ui/qt/multicast_statistics_dialog.h b/ui/qt/multicast_statistics_dialog.h new file mode 100644 index 0000000000..5e6a56d7f3 --- /dev/null +++ b/ui/qt/multicast_statistics_dialog.h @@ -0,0 +1,72 @@ +/* multicast_statistics_dialog.h + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MULTICASTSTATISTICSDIALOG_H +#define MULTICASTSTATISTICSDIALOG_H + +#include "tap_parameter_dialog.h" + +class SyntaxLineEdit; + +class MulticastStatisticsDialog : public TapParameterDialog +{ + Q_OBJECT + +public: + MulticastStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter = NULL); + ~MulticastStatisticsDialog(); + +private: + struct _mcaststream_tapinfo *tapinfo_; + SyntaxLineEdit *burst_measurement_interval_le_; + SyntaxLineEdit *burst_alarm_threshold_le_; + SyntaxLineEdit *buffer_alarm_threshold_le_; + SyntaxLineEdit *stream_empty_speed_le_; + SyntaxLineEdit *total_empty_speed_le_; + QList<QWidget *> line_edits_; + + // Callbacks for register_tap_listener + static void tapReset(void *mti_ptr); + static void tapDraw(void *mti_ptr); + + virtual const QString filterExpression(); + +private slots: + void updateWidgets(); + void updateMulticastParameters(); + virtual void fillTree(); + void captureFileClosing(); +}; + +#endif // MULTICASTSTATISTICSDIALOG_H + +/* + * Editor modelines + * + * Local Variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ |