017cb75ae5
- Packet Transmission rate (IPG) is done - need to test. IBG is still pending - Per port there are two pcap_t handles - one for Rx and one for Tx: since PCAP does not capture loopback packets, transmission by OST happens on Rx Hdl so that they are recieved on the Tx Hdl - pcap_loop() changed to pcap_dispatch() to be able to work in PCAP/Linux - forgot exactly why :-) - Removed NIC stats - Implemented PortStatsFilterDialog ordering of ports - PortStatsWindow - Tooltip on Port column dispays stats limitations
36 lines
885 B
C++
36 lines
885 B
C++
#ifndef _PORT_STATS_FILTER_DIALOG_H
|
|
#define _PORT_STATS_FILTER_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QAbstractItemModel>
|
|
#include <QStandardItemModel>
|
|
#include "ui_portstatsfilter.h"
|
|
#include "portgrouplist.h"
|
|
|
|
class PortStatsFilterDialog : public QDialog, public Ui::PortStatsFilterDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PortStatsFilterDialog(QWidget *parent = 0);
|
|
QList<uint> getItemList(bool* ok, QAbstractItemModel *model,
|
|
Qt::Orientation orientation = Qt::Vertical,
|
|
QList<uint> initial = QList<uint>());
|
|
|
|
private:
|
|
enum ItemRole {
|
|
PositionRole = Qt::UserRole + 1
|
|
};
|
|
QStandardItemModel mUnselected;
|
|
QStandardItemModel mSelected;
|
|
|
|
private slots:
|
|
void on_tbSelectIn_clicked();
|
|
void on_tbSelectOut_clicked();
|
|
void on_lvUnselected_doubleClicked(const QModelIndex &index);
|
|
void on_lvSelected_doubleClicked(const QModelIndex &index);
|
|
};
|
|
|
|
#endif
|
|
|