Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index be2a86e..b4b6aa3 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -36,4 +36,5 @@ using namespace Opie; #include <qlineedit.h> #include <qmessagebox.h> +#include <qregexp.h> #include <qspinbox.h> #include <qtoolbutton.h> @@ -326,5 +327,9 @@ void Wellenreiter::startClicked() if ( configwindow->writeCaptureFile->isEnabled() ) { - pcap->open( interface, configwindow->captureFileName->text() ); + QString dumpname( configwindow->captureFileName->text() ); + dumpname.append( '-' ); + dumpname.append( QTime::currentTime().toString().replace( QRegExp( ":" ), "-" ) ); + dumpname.append( ".wellenreiter" ); + pcap->open( interface, dumpname ); } else @@ -366,4 +371,10 @@ void Wellenreiter::startClicked() sniffing = true; emit( startedSniffing() ); + if ( cardtype != DEVTYPE_FILE ) channelHopped( 6 ); // set title + else + { + assert( parent() ); + ( (QMainWindow*) parent() )->setCaption( "Wellenreiter II - replaying capture file..." ); + } } |