Add TFTP export for Qt too
Change-Id: I056829d48aa49eb106c76c8f572c0f8b6e1a4245 Reviewed-on: https://code.wireshark.org/review/1916 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
ad7b5381ac
commit
60ce7bce5f
|
@ -99,6 +99,11 @@ ExportObjectDialog::ExportObjectDialog(QWidget *parent, capture_file *cf, Object
|
|||
tap_packet_ = eo_smb_packet;
|
||||
eo_protocoldata_resetfn_ = eo_smb_cleanup;
|
||||
break;
|
||||
case Tftp:
|
||||
tap_name_ = "tftp_eo";
|
||||
name_ = "TFTP";
|
||||
tap_packet_ = eo_tftp_packet;
|
||||
break;
|
||||
}
|
||||
|
||||
save_bt_ = eo_ui_->buttonBox->button(QDialogButtonBox::Save);
|
||||
|
|
|
@ -55,7 +55,7 @@ class ExportObjectDialog : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum ObjectType { Dicom, Http, Smb };
|
||||
enum ObjectType { Dicom, Http, Smb, Tftp };
|
||||
|
||||
explicit ExportObjectDialog(QWidget *parent, capture_file *cf, ObjectType object_type);
|
||||
~ExportObjectDialog();
|
||||
|
|
|
@ -232,6 +232,7 @@ private slots:
|
|||
void on_actionFileExportObjectsDICOM_triggered();
|
||||
void on_actionFileExportObjectsHTTP_triggered();
|
||||
void on_actionFileExportObjectsSMB_triggered();
|
||||
void on_actionFileExportObjectsTFTP_triggered();
|
||||
void on_actionFilePrint_triggered();
|
||||
|
||||
void on_actionFileExportPDU_triggered();
|
||||
|
|
|
@ -28,16 +28,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing">
|
||||
|
@ -68,7 +59,7 @@
|
|||
<item>
|
||||
<widget class="QLineEdit" name="goToLineEdit">
|
||||
<property name="inputMask">
|
||||
<string>900000000</string>
|
||||
<string>900000000; </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -106,7 +97,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>960</width>
|
||||
<height>22</height>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
@ -145,6 +136,7 @@
|
|||
<addaction name="actionFileExportObjectsDICOM"/>
|
||||
<addaction name="actionFileExportObjectsHTTP"/>
|
||||
<addaction name="actionFileExportObjectsSMB"/>
|
||||
<addaction name="actionFileExportObjectsTFTP"/>
|
||||
</widget>
|
||||
<addaction name="actionFileOpen"/>
|
||||
<addaction name="menuOpenRecentCaptureFile"/>
|
||||
|
@ -362,7 +354,7 @@
|
|||
<addaction name="menu29WestQueues"/>
|
||||
<addaction name="menu29WestUIM"/>
|
||||
<addaction name="actionStatistics29WestLBTRM"/>
|
||||
<addaction name="actionStatistics29WestLBTRU"/>
|
||||
<addaction name="actionStatistics29WestLBTRU"/>
|
||||
</widget>
|
||||
<addaction name="actionSummary"/>
|
||||
<addaction name="actionProtocol_Hierarchy"/>
|
||||
|
@ -1707,6 +1699,11 @@
|
|||
<string>Show/hide the display filter toolbar</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFileExportObjectsTFTP">
|
||||
<property name="text">
|
||||
<string>&TFTP</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
|
|
@ -1393,6 +1393,11 @@ void MainWindow::on_actionFileExportObjectsSMB_triggered()
|
|||
new ExportObjectDialog(this, cap_file_, ExportObjectDialog::Smb);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFileExportObjectsTFTP_triggered()
|
||||
{
|
||||
new ExportObjectDialog(this, cap_file_, ExportObjectDialog::Tftp);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFilePrint_triggered()
|
||||
{
|
||||
PrintDialog pdlg(this, cap_file_);
|
||||
|
|
Loading…
Reference in New Issue