#include <BadPacket.h> [code]
Inherits Protocols::Generics::PacketBase.
Inheritance diagram for Protocols::Generics::BadPacket:


An instance of this class only stores a packet's raw data. PacketFactory creates an instance of this class if the raw data cannot be parsed.
Definition at line 45 of file BadPacket.h.
Public Member Functions | |
| virtual QString | protocol () const |
| Returns the name of the protocol this PacketBase belongs to. | |
| virtual QString | name () const |
| Returns the name of the PacketBase type the dynamic object belongs to. | |
| virtual auto_ptr< DataBase > | copy () const |
| Virtual copy constructor. | |
| BadPacket (const QByteArray &rawHeader=QByteArray(), const QByteArray &rawPayload=QByteArray()) | |
| Constructs an object from raw data. | |
Protected Member Functions | |
| virtual bool | readHeader (const QByteArray &rawHeader) |
| virtual bool | readPayload (const QByteArray &rawPayload) |
| virtual QByteArray | writeHeader () const |
| virtual QByteArray | writePayload () const |
Private Member Functions | |
| Q_DECLARE_SHARED_DATA (Data) | |
Classes | |
| class | Data |
| BadPacket private data. More... | |
|
||||||||||||
|
Constructs an object from raw data.
Definition at line 45 of file BadPacket.cpp. |
|
|
Virtual copy constructor.
Implements Protocols::Generics::PacketBase. Definition at line 37 of file BadPacket.cpp. |
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::Generics::PacketBase. Definition at line 32 of file BadPacket.cpp. |
|
|
Returns the name of the protocol this PacketBase belongs to.
Implements Protocols::Generics::PacketBase. Definition at line 27 of file BadPacket.cpp. |
|
|
|
|
|
Implements Protocols::Generics::PacketBase. Definition at line 56 of file BadPacket.cpp. |
|
|
Implements Protocols::Generics::PacketBase. Definition at line 62 of file BadPacket.cpp. |
|
|
Implements Protocols::Generics::PacketBase. Definition at line 68 of file BadPacket.cpp. |
|
|
Implements Protocols::Generics::PacketBase. Definition at line 74 of file BadPacket.cpp. |