Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SendFileRequestPacket Class Reference

#include <evaimsend.h>

Inherits SendIM.

Inheritance diagram for SendFileRequestPacket:

Inheritance graph
[legend]
Collaboration diagram for SendFileRequestPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SendFileRequestPacket ()
 SendFileRequestPacket (const SendFileRequestPacket &rhs)
virtual ~SendFileRequestPacket ()
OutPacketcopy ()
SendFileRequestPacketoperator= (const SendFileRequestPacket &rhs)
void setFileName (const std::string &filename)
void setFileSize (const unsigned int size)
void setDirectPort (const unsigned short port)
void setWanPort (const unsigned short port)
void setWanIp (const unsigned int ip)
void setTransferType (const unsigned char type)
const std::string getFileName () const
const unsigned int getFileSize () const
const unsigned short getDirectPort () const
const unsigned short getWanPort () const
const unsigned int getWanIp () const
const unsigned char getTransferType () const

Protected Member Functions

virtual int putContents (unsigned char *buf)

Private Attributes

std::string m_FileName
unsigned int m_FileSize
unsigned short m_DirectPort
unsigned short m_WanPort
unsigned int m_WanIp
unsigned char m_TransferType

Detailed Description

Definition at line 143 of file evaimsend.h.


Constructor & Destructor Documentation

SendFileRequestPacket::SendFileRequestPacket  ) 
 

Definition at line 324 of file evaimsend.cpp.

Referenced by copy().

SendFileRequestPacket::SendFileRequestPacket const SendFileRequestPacket rhs  ) 
 

Definition at line 335 of file evaimsend.cpp.

virtual SendFileRequestPacket::~SendFileRequestPacket  )  [inline, virtual]
 

Definition at line 148 of file evaimsend.h.


Member Function Documentation

OutPacket* SendFileRequestPacket::copy  )  [inline]
 

Definition at line 151 of file evaimsend.h.

References SendFileRequestPacket().

Here is the call graph for this function:

const unsigned short SendFileRequestPacket::getDirectPort  )  const [inline]
 

Definition at line 163 of file evaimsend.h.

References m_DirectPort.

Referenced by operator=().

const std::string SendFileRequestPacket::getFileName  )  const [inline]
 

Definition at line 161 of file evaimsend.h.

References m_FileName.

Referenced by operator=().

const unsigned int SendFileRequestPacket::getFileSize  )  const [inline]
 

Definition at line 162 of file evaimsend.h.

References m_FileSize.

Referenced by operator=().

const unsigned char SendFileRequestPacket::getTransferType  )  const [inline]
 

Definition at line 166 of file evaimsend.h.

References m_TransferType.

Referenced by operator=().

const unsigned int SendFileRequestPacket::getWanIp  )  const [inline]
 

Definition at line 165 of file evaimsend.h.

References m_WanIp.

Referenced by operator=().

const unsigned short SendFileRequestPacket::getWanPort  )  const [inline]
 

Definition at line 164 of file evaimsend.h.

References m_WanPort.

Referenced by operator=().

SendFileRequestPacket & SendFileRequestPacket::operator= const SendFileRequestPacket rhs  ) 
 

Definition at line 341 of file evaimsend.cpp.

References getDirectPort(), getFileName(), getFileSize(), getTransferType(), getWanIp(), getWanPort(), m_DirectPort, m_FileName, m_FileSize, m_TransferType, m_WanIp, and m_WanPort.

Here is the call graph for this function:

int SendFileRequestPacket::putContents unsigned char *  buf  )  [protected, virtual]
 

Reimplemented from SendIM.

Definition at line 353 of file evaimsend.cpp.

References m_DirectPort, m_FileName, m_FileSize, m_TransferType, m_WanIp, m_WanPort, EvaUtil::write16(), and EvaUtil::write32().

Here is the call graph for this function:

void SendFileRequestPacket::setDirectPort const unsigned short  port  )  [inline]
 

Definition at line 156 of file evaimsend.h.

References m_DirectPort.

void SendFileRequestPacket::setFileName const std::string &  filename  )  [inline]
 

Definition at line 154 of file evaimsend.h.

References m_FileName.

void SendFileRequestPacket::setFileSize const unsigned int  size  )  [inline]
 

Definition at line 155 of file evaimsend.h.

References m_FileSize.

void SendFileRequestPacket::setTransferType const unsigned char  type  )  [inline]
 

Definition at line 159 of file evaimsend.h.

References m_TransferType.

void SendFileRequestPacket::setWanIp const unsigned int  ip  )  [inline]
 

Definition at line 158 of file evaimsend.h.

References m_WanIp.

void SendFileRequestPacket::setWanPort const unsigned short  port  )  [inline]
 

Definition at line 157 of file evaimsend.h.

References m_WanPort.


Member Data Documentation

unsigned short SendFileRequestPacket::m_DirectPort [private]
 

Definition at line 173 of file evaimsend.h.

Referenced by getDirectPort(), operator=(), putContents(), and setDirectPort().

std::string SendFileRequestPacket::m_FileName [private]
 

Definition at line 171 of file evaimsend.h.

Referenced by getFileName(), operator=(), putContents(), and setFileName().

unsigned int SendFileRequestPacket::m_FileSize [private]
 

Definition at line 172 of file evaimsend.h.

Referenced by getFileSize(), operator=(), putContents(), and setFileSize().

unsigned char SendFileRequestPacket::m_TransferType [private]
 

Definition at line 176 of file evaimsend.h.

Referenced by getTransferType(), operator=(), putContents(), and setTransferType().

unsigned int SendFileRequestPacket::m_WanIp [private]
 

Definition at line 175 of file evaimsend.h.

Referenced by getWanIp(), operator=(), putContents(), and setWanIp().

unsigned short SendFileRequestPacket::m_WanPort [private]
 

Definition at line 174 of file evaimsend.h.

Referenced by getWanPort(), operator=(), putContents(), and setWanPort().


The documentation for this class was generated from the following files:
Generated on Mon May 15 20:53:02 2006 for libeva by  doxygen 1.4.4