#include <QueryHits.h> [code]
Inherits Protocols::Gnutella::Packets::PacketBase.
Inheritance diagram for Protocols::Gnutella::Packets::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< DataBase > | copy () 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... | |
|
||||||||||||||||||||||||
|
Definition at line 40 of file QueryHits.cpp. |
|
|
Virtual copy constructor.
Implements Protocols::Gnutella::Packets::PacketBase. Definition at line 34 of file QueryHits.cpp. |
|
|
Getter for the packet field ipAddress.
Definition at line 106 of file QueryHits.h. |
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::Gnutella::Packets::PacketBase. Definition at line 28 of file QueryHits.cpp. |
|
|
Getter for the packet field numberOfHits.
Definition at line 94 of file QueryHits.h. |
|
|
Getter for the packet field port.
Definition at line 98 of file QueryHits.h. |
|
|
|
|
|
Getter for the packet field queryHitsData.
Definition at line 130 of file QueryHits.h. |
|
|
Reads the packet's payload fields.
Implements Protocols::Gnutella::Packets::PacketBase. Definition at line 52 of file QueryHits.cpp. |
|
|
Getter for the packet field resultSet.
Definition at line 122 of file QueryHits.h. |
|
|
Setter for the packet field ipAddress.
Definition at line 110 of file QueryHits.h. |
|
|
Setter for the packet field port.
Definition at line 102 of file QueryHits.h. |
|
|
Setter for the packet field queryHitsData.
Definition at line 134 of file QueryHits.h. |
|
|
Setter for the packet field resultSet.
Definition at line 126 of file QueryHits.h. |
|
|
Setter for the packet field speed.
Definition at line 118 of file QueryHits.h. |
|
|
Getter for the packet field speed.
Definition at line 114 of file QueryHits.h. |
|
|
Writes the packet's payload fields.
Implements Protocols::Gnutella::Packets::PacketBase. Definition at line 64 of file QueryHits.cpp. |