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