Gnutella::Packets::Extensions::Ggeps::PackedHostCaches Class Reference

#include <PackedHostCaches.h> [code]

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

Inheritance diagram for Gnutella::Packets::Extensions::Ggeps::PackedHostCaches:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 39 of file PackedHostCaches.h.

Public Member Functions

 PackedHostCaches (const GgepId &id, int flags, int dataSize)
 PackedHostCaches (const QList< NodeAddress > &nodeAddresses)
PackedHostCachescopy () const
QList< NodeAddressaddresses () const
void setAddresses (const QList< NodeAddress > &addresses)

Static Public Member Functions

static const PackedHostCachesfindIn (const GgepBlock &ggepBlock)

Static Public Attributes

static const Ggep::GgepId Id

Protected Member Functions

bool prepareReadData (const QByteArray &rawData)
 Verifies the structure of rawData.
void readData (QDataStream &stream)
 Reads the extension data from stream.
int prepareWriteData () const
 Prepares for writing the extension data and returns its length.
void writeData (QDataStream &stream) const
 Writes the extension data to the stream;.

Private Attributes

Gnutella::Packets::Extensions::Ggeps::PackedHostCaches::Private p

Classes

struct  Private


Constructor & Destructor Documentation

PackedHostCaches::PackedHostCaches const GgepId id,
int  flags,
int  dataSize
 

Definition at line 34 of file PackedHostCaches.cpp.

PackedHostCaches::PackedHostCaches const QList< NodeAddress > &  nodeAddresses  ) 
 

Definition at line 39 of file PackedHostCaches.cpp.


Member Function Documentation

QList< NodeAddress > Gnutella::Packets::Extensions::Ggeps::PackedHostCaches::addresses  )  const [inline]
 

Definition at line 73 of file PackedHostCaches.h.

PackedHostCaches * PackedHostCaches::copy  )  const [virtual]
 

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

Definition at line 57 of file PackedHostCaches.cpp.

const PackedHostCaches * PackedHostCaches::findIn const GgepBlock ggepBlock  )  [static]
 

Definition at line 46 of file PackedHostCaches.cpp.

bool PackedHostCaches::prepareReadData const QByteArray &  rawData  )  [protected, virtual]
 

Verifies the structure of rawData.

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

Definition at line 62 of file PackedHostCaches.cpp.

int PackedHostCaches::prepareWriteData  )  const [protected, virtual]
 

Prepares for writing the extension data and returns its length.

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

Definition at line 91 of file PackedHostCaches.cpp.

void PackedHostCaches::readData QDataStream &  stream  )  [protected, virtual]
 

Reads the extension data from stream.

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

Definition at line 67 of file PackedHostCaches.cpp.

void Gnutella::Packets::Extensions::Ggeps::PackedHostCaches::setAddresses const QList< NodeAddress > &  addresses  )  [inline]
 

Definition at line 76 of file PackedHostCaches.h.

void PackedHostCaches::writeData QDataStream &  stream  )  const [protected, virtual]
 

Writes the extension data to the stream;.

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

Definition at line 104 of file PackedHostCaches.cpp.


Member Data Documentation

const Ggep::GgepId PackedHostCaches::Id [static]
 

Definition at line 42 of file PackedHostCaches.h.

struct Gnutella::Packets::Extensions::Ggeps::PackedHostCaches::Private Gnutella::Packets::Extensions::Ggeps::PackedHostCaches::p [private]
 

Reimplemented from Gnutella::Packets::Extensions::Ggep.


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