Protocols::Gnutella::Packets::QueryHits Class Reference

#include <QueryHits.h> [code]

Inherits Protocols::Gnutella::Packets::PacketBase.

Inheritance diagram for Protocols::Gnutella::Packets::QueryHits:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Gnutella::Packets::QueryHits:

Collaboration graph
[legend]
List of all members.

Detailed Description

Implements the packet QueryHits.

The Packet respond the Query for results.

Definition at line 38 of file QueryHits.h.

Public Member Functions

QString name () const
 Returns the name of the PacketBase type the dynamic object belongs to.
auto_ptr< DataBasecopy () const
 Virtual copy constructor.
 QueryHits (quint16 port=0, const QHostAddress &ipAddress=QHostAddress(), quint32 speed=0, const ResultSet &resultSet=ResultSet(), const QueryHitsData &queryHitsData=QueryHitsData())
uchar numberOfHits () const
 Getter for the packet field numberOfHits.
quint16 port () const
 Getter for the packet field port.
void setPort (quint16)
 Setter for the packet field port.
QHostAddress ipAddress () const
 Getter for the packet field ipAddress.
void setIpAddress (const QHostAddress &)
 Setter for the packet field ipAddress.
quint32 speed () const
 Getter for the packet field speed.
void setSpeed (quint32)
 Setter for the packet field speed.
ResultSet resultSet () const
 Getter for the packet field resultSet.
void setResultSet (const ResultSet &)
 Setter for the packet field resultSet.
QueryHitsData queryHitsData () const
 Getter for the packet field queryHitsData.
void setQueryHitsData (const QueryHitsData &)
 Setter for the packet field queryHitsData.

Protected Member Functions

void readPayload (BinaryReader &)
 Reads the packet's payload fields.
void writePayload (BinaryWriter &) const
 Writes the packet's payload fields.
 Q_DECLARE_SHARED_DATA (Data)

Classes

class  Data
 QueryHits packet's private data. More...


Constructor & Destructor Documentation

QueryHits::QueryHits quint16  port = 0,
const QHostAddress &  ipAddress = QHostAddress(),
quint32  speed = 0,
const ResultSet resultSet = ResultSet(),
const QueryHitsData queryHitsData = QueryHitsData()
 

Definition at line 40 of file QueryHits.cpp.


Member Function Documentation

auto_ptr< DataBase > QueryHits::copy  )  const [virtual]
 

Virtual copy constructor.

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 34 of file QueryHits.cpp.

QHostAddress Protocols::Gnutella::Packets::QueryHits::ipAddress  )  const [inline]
 

Getter for the packet field ipAddress.

Definition at line 106 of file QueryHits.h.

QString QueryHits::name  )  const [virtual]
 

Returns the name of the PacketBase type the dynamic object belongs to.

Todo:
Better use PacketId (which possibly contains the ProtocolId)?

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 28 of file QueryHits.cpp.

uchar Protocols::Gnutella::Packets::QueryHits::numberOfHits  )  const [inline]
 

Getter for the packet field numberOfHits.

Definition at line 94 of file QueryHits.h.

quint16 Protocols::Gnutella::Packets::QueryHits::port  )  const [inline]
 

Getter for the packet field port.

Definition at line 98 of file QueryHits.h.

Protocols::Gnutella::Packets::QueryHits::Q_DECLARE_SHARED_DATA Data   )  [protected]
 

QueryHitsData Protocols::Gnutella::Packets::QueryHits::queryHitsData  )  const [inline]
 

Getter for the packet field queryHitsData.

Definition at line 130 of file QueryHits.h.

void QueryHits::readPayload BinaryReader  )  [protected, virtual]
 

Reads the packet's payload fields.

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 52 of file QueryHits.cpp.

ResultSet Protocols::Gnutella::Packets::QueryHits::resultSet  )  const [inline]
 

Getter for the packet field resultSet.

Definition at line 122 of file QueryHits.h.

void Protocols::Gnutella::Packets::QueryHits::setIpAddress const QHostAddress &   )  [inline]
 

Setter for the packet field ipAddress.

Definition at line 110 of file QueryHits.h.

void Protocols::Gnutella::Packets::QueryHits::setPort quint16   )  [inline]
 

Setter for the packet field port.

Definition at line 102 of file QueryHits.h.

void Protocols::Gnutella::Packets::QueryHits::setQueryHitsData const QueryHitsData  )  [inline]
 

Setter for the packet field queryHitsData.

Definition at line 134 of file QueryHits.h.

void Protocols::Gnutella::Packets::QueryHits::setResultSet const ResultSet  )  [inline]
 

Setter for the packet field resultSet.

Definition at line 126 of file QueryHits.h.

void Protocols::Gnutella::Packets::QueryHits::setSpeed quint32   )  [inline]
 

Setter for the packet field speed.

Definition at line 118 of file QueryHits.h.

quint32 Protocols::Gnutella::Packets::QueryHits::speed  )  const [inline]
 

Getter for the packet field speed.

Definition at line 114 of file QueryHits.h.

void QueryHits::writePayload BinaryWriter  )  const [protected, virtual]
 

Writes the packet's payload fields.

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 64 of file QueryHits.cpp.


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