ED2KSearchResult Class Reference

SearchFile is a customized ED2KFile which adds search-result related members. More...

#include <ed2ksearch.h>

List of all members.


Public Member Functions

 ED2KSearchResult (Hash< ED2KHash > h, const std::string &name, uint32_t size)
 Construct using hash, name and type.
virtual void download ()
 Download this SearchFile.

Private Attributes

Hash< ED2KHash > m_hash

Detailed Description

SearchFile is a customized ED2KFile which adds search-result related members.

This type should be used when handling search results.

Definition at line 26 of file ed2ksearch.h.


Constructor & Destructor Documentation

ED2KSearchResult::ED2KSearchResult Hash< ED2KHash >  h,
const std::string &  name,
uint32_t  size
 

Construct using hash, name and type.

Parameters:
h ED2KHash of the file
name File name
size File size
id ID of the client sharing this file
port Port of the client sharing this file

Definition at line 27 of file ed2ksearch.cpp.


Member Function Documentation

void ED2KSearchResult::download  )  [virtual]
 

Download this SearchFile.

Definition at line 31 of file ed2ksearch.cpp.

References m_hash.


Member Data Documentation

Hash<ED2KHash> ED2KSearchResult::m_hash [private]
 

Definition at line 46 of file ed2ksearch.h.

Referenced by download().


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