summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/packetview.h
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/packetview.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/packetview.h19
1 files changed, 14 insertions, 5 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
@@ -21,7 +21,9 @@
+class QLabel;
class QString;
class QSpinBox;
-class QLabel;
class QTextView;
+class QObjectList;
namespace Opie {namespace Net {class OPacket;}}
+namespace Opie {namespace Ui {class OListView;}}
@@ -29,2 +31,3 @@ class PacketView: public QFrame
{
+ Q_OBJECT
@@ -33,3 +36,3 @@ class PacketView: public QFrame
- void add( Opie::Net::OPacket* p );
+ void add( const Opie::Net::OPacket* p );
const QString getLog() const;
@@ -37,9 +40,15 @@ class PacketView: public QFrame
- protected:
+ 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* );