b28bcd3055
- OstProto service has a new method "modifyPort()" - At port init port.isExclusive is now set using a bindconfig query (Win32 only) - AbstractPort interface has 2 new pure virtual methods - hasExclusiveControl() and setExclusiveControl() - PcapPort does not support this functionality (yet) so these methods return false - WinPcapPort suppots this new functionality using bindconfig - Port's notes (specifying Rx/Tx limitations) are now set and updated based on hasExclusiveControl() - Presence of 'notes' on a port is indicated using a '*' after the port name in the port stats window - The tabwidget has been removed from Port Window | Stream View Pane - Ostinato Client has a new action in the port window's context menu for the same - Port Icon in the Port Window is decorated based on exclusive control
63 lines
1.6 KiB
C++
63 lines
1.6 KiB
C++
#ifndef _PORTS_WINDOW_H
|
|
#define _PORTS_WINDOW_H
|
|
|
|
#include <QWidget>
|
|
#include <QAbstractItemModel>
|
|
#include "ui_portswindow.h"
|
|
#include "portgrouplist.h"
|
|
|
|
/* TODO
|
|
HIGH
|
|
MED
|
|
LOW
|
|
*/
|
|
|
|
class QAbstractItemDelegate;
|
|
|
|
class PortsWindow : public QWidget, private Ui::PortsWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
//QAbstractItemModel *slm; // stream list model
|
|
PortGroupList *plm;
|
|
|
|
public:
|
|
PortsWindow(PortGroupList *pgl, QWidget *parent = 0);
|
|
~PortsWindow();
|
|
|
|
private:
|
|
QString lastNewPortGroup;
|
|
QAbstractItemDelegate *delegate;
|
|
|
|
void updatePortViewActions(const QModelIndex& current);
|
|
//void updateStreamViewActions(const QModelIndex& current);
|
|
void updateStreamViewActions();
|
|
|
|
private slots:
|
|
void on_tvStreamList_activated(const QModelIndex & index);
|
|
void when_portView_currentChanged(const QModelIndex& current,
|
|
const QModelIndex& previous);
|
|
void when_streamView_currentChanged(const QModelIndex& current,
|
|
const QModelIndex& previous);
|
|
void when_streamView_selectionChanged();
|
|
void when_portModel_dataChanged(const QModelIndex& topLeft,
|
|
const QModelIndex& bottomRight);
|
|
void when_portModel_reset();
|
|
|
|
void on_pbApply_clicked();
|
|
|
|
void on_actionNew_Port_Group_triggered();
|
|
void on_actionDelete_Port_Group_triggered();
|
|
void on_actionConnect_Port_Group_triggered();
|
|
void on_actionDisconnect_Port_Group_triggered();
|
|
|
|
void on_actionExclusive_Control_triggered(bool checked);
|
|
|
|
void on_actionNew_Stream_triggered();
|
|
void on_actionEdit_Stream_triggered();
|
|
void on_actionDelete_Stream_triggered();
|
|
};
|
|
|
|
#endif
|
|
|