Protocols::Gnutella::Packets::Query Class Reference

#include <Query.h> [code]

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

Inheritance diagram for Protocols::Gnutella::Packets::Query:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implements the packet Query.

The primary mechanism for searching the distributed network

Definition at line 38 of file Query.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.
 Query (const MinSpeed &minSpeed=MinSpeed(), const QByteArray &searchCriteria=QByteArray(), const QueryData &extension=QueryData())
MinSpeed minSpeed () const
 Getter for the packet field minSpeed.
void setMinSpeed (const MinSpeed &)
 Setter for the packet field minSpeed.
QByteArray searchCriteria () const
 Getter for the packet field searchCriteria.
void setSearchCriteria (const QByteArray &)
 Setter for the packet field searchCriteria.
QueryData extension () const
 Getter for the packet field extension.
void setExtension (const QueryData &)
 Setter for the packet field extension.

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
 Query packet's private data. More...


Constructor & Destructor Documentation

Query::Query const MinSpeed minSpeed = MinSpeed(),
const QByteArray &  searchCriteria = QByteArray(),
const QueryData extension = QueryData()
 

Definition at line 40 of file Query.cpp.


Member Function Documentation

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

Virtual copy constructor.

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

Definition at line 34 of file Query.cpp.

QueryData Protocols::Gnutella::Packets::Query::extension  )  const [inline]
 

Getter for the packet field extension.

Definition at line 97 of file Query.h.

MinSpeed Protocols::Gnutella::Packets::Query::minSpeed  )  const [inline]
 

Getter for the packet field minSpeed.

Definition at line 81 of file Query.h.

QString Query::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 Query.cpp.

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

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

Reads the packet's payload fields.

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

Definition at line 50 of file Query.cpp.

QByteArray Protocols::Gnutella::Packets::Query::searchCriteria  )  const [inline]
 

Getter for the packet field searchCriteria.

Definition at line 89 of file Query.h.

void Protocols::Gnutella::Packets::Query::setExtension const QueryData  )  [inline]
 

Setter for the packet field extension.

Definition at line 101 of file Query.h.

void Protocols::Gnutella::Packets::Query::setMinSpeed const MinSpeed  )  [inline]
 

Setter for the packet field minSpeed.

Definition at line 85 of file Query.h.

void Protocols::Gnutella::Packets::Query::setSearchCriteria const QByteArray &   )  [inline]
 

Setter for the packet field searchCriteria.

Definition at line 93 of file Query.h.

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

Writes the packet's payload fields.

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

Definition at line 59 of file Query.cpp.


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