author | mickeyl <mickeyl> | 2004-03-28 17:33:25 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-28 17:33:25 (UTC) |
commit | 43be19e2c53014ef83a53a2045c0e41265d574d6 (patch) (side-by-side diff) | |
tree | e716b7b506cc77f98e894e248a11690a376dbe32 /noncore/net/wellenreiter/gui/packetview.h | |
parent | 1c151bedaa6cfcc8f10c7b5aa549de3e6628d271 (diff) | |
download | opie-43be19e2c53014ef83a53a2045c0e41265d574d6.zip opie-43be19e2c53014ef83a53a2045c0e41265d574d6.tar.gz opie-43be19e2c53014ef83a53a2045c0e41265d574d6.tar.bz2 |
more work on the new packet viewer
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 @@ -20,27 +20,36 @@ #include <qframe.h> +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<Opie::Net::OPacket> _packets; + QList<const Opie::Net::OPacket> _packets; + + protected: + void _doSubPackets( QObjectList*, int ); + void _doHexPacket( const Opie::Net::OPacket* ); }; |