From ccb1fc9a03aefeadda397146528910324153f09d Mon Sep 17 00:00:00 2001 From: gilgil Date: Sat, 3 May 2014 05:19:09 +0900 Subject: [PATCH] Add WebSniff command in Tools menu --- app/snoopspy/mainwindow.cpp | 29 ++++++++++++++++++++--------- app/snoopspy/mainwindow.h | 6 ++++-- app/snoopspy/mainwindow.ui | 28 +++++++++++++++++++--------- 3 files changed, 43 insertions(+), 20 deletions(-) diff --git a/app/snoopspy/mainwindow.cpp b/app/snoopspy/mainwindow.cpp index 7bf450b..a2c4193 100644 --- a/app/snoopspy/mainwindow.cpp +++ b/app/snoopspy/mainwindow.cpp @@ -491,15 +491,6 @@ void MainWindow::on_actionShowOption_triggered() if (optionable->optionDoAll(this)) selectionChanged(); } -void MainWindow::on_actionHttpProxy_triggered() -{ - QString url = "httpproxy.exe"; - if (!QDesktopServices::openUrl(QUrl(url))) - { - LOG_ERROR("can not open url(%s)", qPrintable(url)); - } -} - void MainWindow::on_actionLogServer_triggered() { QString url = "logserver.exe"; @@ -553,3 +544,23 @@ void MainWindow::on_actionWinDivert_Filter_triggered() LOG_ERROR("can not open url(%s)", qPrintable(url)); } } + +void MainWindow::on_actionWebProxy_triggered() +{ + QString url = "webproxy.exe"; + if (!QDesktopServices::openUrl(QUrl(url))) + { + LOG_ERROR("can not open url(%s)", qPrintable(url)); + } + +} + +void MainWindow::on_actionWebSniff_triggered() +{ + QString url = "websniff.exe"; + if (!QDesktopServices::openUrl(QUrl(url))) + { + LOG_ERROR("can not open url(%s)", qPrintable(url)); + } + +} diff --git a/app/snoopspy/mainwindow.h b/app/snoopspy/mainwindow.h index 80dc27b..26a8b46 100644 --- a/app/snoopspy/mainwindow.h +++ b/app/snoopspy/mainwindow.h @@ -127,8 +127,6 @@ private slots: void on_actionShowOption_triggered(); - void on_actionHttpProxy_triggered(); - void on_actionLogServer_triggered(); void on_actionNetClient_triggered(); @@ -141,6 +139,10 @@ private slots: void on_actionWinDivert_Filter_triggered(); + void on_actionWebProxy_triggered(); + + void on_actionWebSniff_triggered(); + private: Ui::MainWindow *ui; }; diff --git a/app/snoopspy/mainwindow.ui b/app/snoopspy/mainwindow.ui index 55cb389..a090478 100644 --- a/app/snoopspy/mainwindow.ui +++ b/app/snoopspy/mainwindow.ui @@ -81,10 +81,11 @@ &Tools - + + @@ -331,40 +332,49 @@ WinDivert Filter - + :/images/tools.png:/images/tools.png - HttpProxy + LogServer - + :/images/tools.png:/images/tools.png - LogServer + NetClient - + :/images/tools.png:/images/tools.png - NetClient + NetServer - + :/images/tools.png:/images/tools.png - NetServer + WebProxy + + + + + + :/images/tools.png:/images/tools.png + + + WebSniff