Protocols::Gnutella::Packets::Extensions::Ggeps::Unknown Class Reference

#include <Unknown.h> [code]

Inherits Protocols::Gnutella::Packets::Extensions::Ggep.

Inheritance diagram for Protocols::Gnutella::Packets::Extensions::Ggeps::Unknown:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Gnutella::Packets::Extensions::Ggeps::Unknown:

Collaboration graph
[legend]
List of all members.

Detailed Description

Encapsulates a bad or unknow GGEP extension.

Just stores the raw bytes of the GGEP extension, which was either unknow, or with invalid format (parse() failed).

Definition at line 39 of file Unknown.h.

Public Member Functions

 Unknown (const QByteArray &id=QByteArray(), const QByteArray &data=QByteArray(), int flags=0)
Unknowncopy () const
GgepId id () const
QByteArray data () const

Protected Member Functions

void readData (BinaryReader &reader)
void writeData (BinaryWriter &writer) const

Protected Attributes

QByteArray id_
QByteArray data_


Constructor & Destructor Documentation

Unknown::Unknown const QByteArray &  id = QByteArray(),
const QByteArray &  data = QByteArray(),
int  flags = 0
 

Definition at line 28 of file Unknown.cpp.


Member Function Documentation

Unknown * Unknown::copy  )  const [virtual]
 

Implements Protocols::Gnutella::Packets::Extensions::Ggep.

Definition at line 34 of file Unknown.cpp.

QByteArray Protocols::Gnutella::Packets::Extensions::Ggeps::Unknown::data  )  const [inline]
 

Definition at line 57 of file Unknown.h.

Ggep::GgepId Unknown::id  )  const [virtual]
 

Implements Protocols::Gnutella::Packets::Extensions::Ggep.

Definition at line 39 of file Unknown.cpp.

void Unknown::readData BinaryReader reader  )  [protected, virtual]
 

Implements Protocols::Gnutella::Packets::Extensions::Ggep.

Definition at line 44 of file Unknown.cpp.

void Unknown::writeData BinaryWriter writer  )  const [protected, virtual]
 

Implements Protocols::Gnutella::Packets::Extensions::Ggep.

Definition at line 49 of file Unknown.cpp.


Member Data Documentation

QByteArray Protocols::Gnutella::Packets::Extensions::Ggeps::Unknown::data_ [protected]
 

Definition at line 54 of file Unknown.h.

QByteArray Protocols::Gnutella::Packets::Extensions::Ggeps::Unknown::id_ [protected]
 

Definition at line 53 of file Unknown.h.


The documentation for this class was generated from the following files: