Gnutella::Packets::Extensions::Ggeps::Ultrapeer Class Reference

#include <Ultrapeer.h> [code]

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

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

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Todo:
make it possible to change data

Definition at line 40 of file Ultrapeer.h.

Public Member Functions

 Ultrapeer (const GgepId &id, int flags, int dataSize)
 Ultrapeer (Version version, int ultrapeerSlots, int leafSlots)
 ~Ultrapeer ()
 Ultrapeer (const Ultrapeer &other)
Ultrapeeroperator= (const Ultrapeer &other)
Ultrapeercopy () const
Version version () const
int ultrapeerSlots () const
int leafSlots () const

Static Public Member Functions

static const UltrapeerfindIn (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

Datad

Classes

struct  Data


Constructor & Destructor Documentation

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

Definition at line 34 of file Ultrapeer.cpp.

Ultrapeer::Ultrapeer Version  version,
int  ultrapeerSlots,
int  leafSlots
 

Definition at line 47 of file Ultrapeer.cpp.

Ultrapeer::~Ultrapeer  ) 
 

Definition at line 59 of file Ultrapeer.cpp.

Gnutella::Packets::Extensions::Ggeps::Ultrapeer::Ultrapeer const Ultrapeer other  )  [inline]
 

Definition at line 82 of file Ultrapeer.h.


Member Function Documentation

Ultrapeer * Ultrapeer::copy  )  const [virtual]
 

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

Definition at line 80 of file Ultrapeer.cpp.

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

Definition at line 71 of file Ultrapeer.cpp.

int Gnutella::Packets::Extensions::Ggeps::Ultrapeer::leafSlots  )  const [inline]
 

Definition at line 92 of file Ultrapeer.h.

Ultrapeer & Ultrapeer::operator= const Ultrapeer other  ) 
 

Definition at line 65 of file Ultrapeer.cpp.

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

Verifies the structure of rawData.

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

Definition at line 85 of file Ultrapeer.cpp.

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

Prepares for writing the extension data and returns its length.

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

Definition at line 101 of file Ultrapeer.cpp.

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

Reads the extension data from stream.

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

Definition at line 90 of file Ultrapeer.cpp.

int Gnutella::Packets::Extensions::Ggeps::Ultrapeer::ultrapeerSlots  )  const [inline]
 

Definition at line 89 of file Ultrapeer.h.

Version Gnutella::Packets::Extensions::Ggeps::Ultrapeer::version  )  const [inline]
 

Definition at line 86 of file Ultrapeer.h.

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

Writes the extension data to the stream;.

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

Definition at line 106 of file Ultrapeer.cpp.


Member Data Documentation

Data* Gnutella::Packets::Extensions::Ggeps::Ultrapeer::d [private]
 

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

Definition at line 75 of file Ultrapeer.h.

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

Definition at line 43 of file Ultrapeer.h.


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