summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/packetview.h
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/packetview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/packetview.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/noncore/net/wellenreiter/gui/packetview.h b/noncore/net/wellenreiter/gui/packetview.h
index 42e8f5d..bb366c5 100644
--- a/noncore/net/wellenreiter/gui/packetview.h
+++ b/noncore/net/wellenreiter/gui/packetview.h
@@ -21,6 +21,7 @@
21 21
22#include <opie2/opcap.h> 22#include <opie2/opcap.h>
23 23
24class QWidget;
24class QLabel; 25class QLabel;
25class QString; 26class QString;
26class QSpinBox; 27class QSpinBox;
@@ -31,17 +32,18 @@ namespace Opie {namespace Ui {class OListView;}}
31 32
32class PacketView: public QFrame 33class PacketView: public QFrame
33{ 34{
34 Q_OBJECT 35 Q_OBJECT
35 36
36 public: 37 public:
37 PacketView( QWidget * parent = 0, const char * name = "PacketView", WFlags f = 0 ); 38 PacketView( QWidget * parent = 0, const char * name = "PacketView", WFlags f = 0 );
38 39
39 void add( const Opie::Net::OPacket* p ); 40 void add( const Opie::Net::OPacket* p, int size );
40 const QString getLog() const; 41 const QString getLog() const;
41 void clear(); 42 void clear();
42 43
43 public slots: 44 public slots:
44 void showPacket( int number ); 45 void showPacket( int number );
46 void activated( QWidget* );
45 47
46 protected: 48 protected:
47 QSpinBox* _number; 49 QSpinBox* _number;
@@ -49,7 +51,7 @@ class PacketView: public QFrame
49 Opie::Ui::OListView* _list; 51 Opie::Ui::OListView* _list;
50 QTextView* _hex; 52 QTextView* _hex;
51 QList<const Opie::Net::OPacket> _packets; 53 QList<const Opie::Net::OPacket> _packets;
52 54
53 protected: 55 protected:
54 void _doSubPackets( QObjectList*, int ); 56 void _doSubPackets( QObjectList*, int );
55 void _doHexPacket( const Opie::Net::OPacket* ); 57 void _doHexPacket( const Opie::Net::OPacket* );