From 43be19e2c53014ef83a53a2045c0e41265d574d6 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 28 Mar 2004 17:33:25 +0000 Subject: more work on the new packet viewer --- (limited to 'noncore/net/wellenreiter/gui/packetview.h') 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 @@ #include #include +class QLabel; class QString; class QSpinBox; -class QLabel; class QTextView; +class QObjectList; namespace Opie {namespace Net {class OPacket;}} +namespace Opie {namespace Ui {class OListView;}} class PacketView: public QFrame { - + Q_OBJECT + public: PacketView( QWidget * parent = 0, const char * name = "PacketView", WFlags f = 0 ); - void add( Opie::Net::OPacket* p ); + void add( const Opie::Net::OPacket* p ); const QString getLog() const; void clear(); + + public slots: + void showPacket( int number ); protected: - QSpinBox* _number; QLabel* _label; - QLabel* _list; + Opie::Ui::OListView* _list; QTextView* _hex; - QList _packets; + QList _packets; + + protected: + void _doSubPackets( QObjectList*, int ); + void _doHexPacket( const Opie::Net::OPacket* ); }; -- cgit v0.9.0.2