ED2KPacket::SearchResult Class Reference

SearchResult packet is sent by server, and contains one or more search results. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::SearchResult:

ED2KPacket::Packet List of all members.

Public Member Functions

 SearchResult (std::istream &i)
 TODO: Actually, the ID and Port here contain some useful TODO: information, but there were some problems with that...
uint32_t getCount () const
boost::shared_ptr< ED2KSearchResultgetResult (uint32_t num) const

Private Attributes

std::vector< boost::shared_ptr<
ED2KSearchResult > > 
m_results

Detailed Description

SearchResult packet is sent by server, and contains one or more search results.

Usage: Server -> Client

Definition at line 316 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::SearchResult::SearchResult std::istream &  i  ) 
 

TODO: Actually, the ID and Port here contain some useful TODO: information, but there were some problems with that...

TODO: Look into it.

Definition at line 388 of file packets.cpp.

References CT_COMPLSRC, CT_FILENAME, CT_FILESIZE, CT_LASTSEENCOMPL, CT_MEDIA_BITRATE, CT_MEDIA_CODEC, CT_MEDIA_LENGTH, CT_SOURCES, Tag::getInt(), Tag::getOpcode(), Tag::getStr(), m_results, and warnUnHandled().


Member Function Documentation

uint32_t ED2KPacket::SearchResult::getCount  )  const [inline]
 

Definition at line 319 of file packets.h.

References m_results.

boost::shared_ptr<ED2KSearchResult> ED2KPacket::SearchResult::getResult uint32_t  num  )  const [inline]
 

Definition at line 320 of file packets.h.

References m_results.


Member Data Documentation

std::vector<boost::shared_ptr<ED2KSearchResult> > ED2KPacket::SearchResult::m_results [private]
 

Definition at line 324 of file packets.h.

Referenced by getCount(), getResult(), and SearchResult().


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