Diffstat (limited to 'noncore/net/wellenreiter/gui/packetview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/packetview.h | 12 |
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 | |||
@@ -18,41 +18,43 @@ | |||
18 | 18 | ||
19 | #include <qlist.h> | 19 | #include <qlist.h> |
20 | #include <qframe.h> | 20 | #include <qframe.h> |
21 | 21 | ||
22 | #include <opie2/opcap.h> | 22 | #include <opie2/opcap.h> |
23 | 23 | ||
24 | class QWidget; | ||
24 | class QLabel; | 25 | class QLabel; |
25 | class QString; | 26 | class QString; |
26 | class QSpinBox; | 27 | class QSpinBox; |
27 | class QTextView; | 28 | class QTextView; |
28 | class QObjectList; | 29 | class QObjectList; |
29 | namespace Opie {namespace Net {class OPacket;}} | 30 | namespace Opie {namespace Net {class OPacket;}} |
30 | namespace Opie {namespace Ui {class OListView;}} | 31 | namespace Opie {namespace Ui {class OListView;}} |
31 | 32 | ||
32 | class PacketView: public QFrame | 33 | class 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; |
48 | QLabel* _label; | 50 | QLabel* _label; |
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* ); |
56 | 58 | ||
57 | }; | 59 | }; |
58 | 60 | ||