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

SendFileExRequestPacket Class Reference

#include <evaimsend.h>

Inherits SendIM.

Inheritance diagram for SendFileExRequestPacket:

Inheritance graph
[legend]
Collaboration diagram for SendFileExRequestPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SendFileExRequestPacket (const short cmd)
 SendFileExRequestPacket (const SendFileExRequestPacket &rhs)
virtual ~SendFileExRequestPacket ()
OutPacketcopy ()
SendFileExRequestPacketoperator= (const SendFileExRequestPacket &rhs)
void setFileName (const std::string &filename)
void setFileSize (const unsigned int size)
void setWanPort (const unsigned short port)
void setWanIp (const unsigned int ip)
void setTransferType (const unsigned char type)
void setSessionId (const unsigned short session)
const std::string getFileName () const
const unsigned int getFileSize () const
const unsigned short getWanPort () const
const unsigned int getWanIp () const
const unsigned char getTransferType () const
const unsigned short getSessionId () const

Protected Member Functions

virtual int putContents (unsigned char *buf)

Private Attributes

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

Detailed Description

Definition at line 181 of file evaimsend.h.


Constructor & Destructor Documentation

SendFileExRequestPacket::SendFileExRequestPacket const short  cmd  ) 
 

Definition at line 399 of file evaimsend.cpp.

Referenced by copy().

SendFileExRequestPacket::SendFileExRequestPacket const SendFileExRequestPacket rhs  ) 
 

Definition at line 409 of file evaimsend.cpp.

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

Definition at line 186 of file evaimsend.h.


Member Function Documentation

OutPacket* SendFileExRequestPacket::copy  )  [inline]
 

Definition at line 189 of file evaimsend.h.

References SendFileExRequestPacket().

Here is the call graph for this function:

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

Definition at line 199 of file evaimsend.h.

References m_FileName.

Referenced by operator=().

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

Definition at line 200 of file evaimsend.h.

References m_FileSize.

Referenced by operator=().

const unsigned short SendFileExRequestPacket::getSessionId  )  const [inline]
 

Definition at line 204 of file evaimsend.h.

References m_SessionId.

Referenced by operator=().

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

Definition at line 203 of file evaimsend.h.

References m_TransferType.

Referenced by operator=().

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

Definition at line 202 of file evaimsend.h.

References m_WanIp.

Referenced by operator=().

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

Definition at line 201 of file evaimsend.h.

References m_WanPort.

Referenced by operator=().

SendFileExRequestPacket & SendFileExRequestPacket::operator= const SendFileExRequestPacket rhs  ) 
 

Definition at line 415 of file evaimsend.cpp.

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

Here is the call graph for this function:

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

Reimplemented from SendIM.

Definition at line 427 of file evaimsend.cpp.

References SendIM::getContentType(), m_FileName, m_FileSize, m_SessionId, m_TransferType, m_WanIp, QQ_IM_EX_REQUEST_ACCEPTED, QQ_IM_EX_REQUEST_CANCELLED, QQ_IM_EX_UDP_REQUEST, QQ_IM_TCP_REQUEST, EvaUtil::write16(), and EvaUtil::write32().

Here is the call graph for this function:

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

Definition at line 192 of file evaimsend.h.

References m_FileName.

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

Definition at line 193 of file evaimsend.h.

References m_FileSize.

void SendFileExRequestPacket::setSessionId const unsigned short  session  )  [inline]
 

Definition at line 197 of file evaimsend.h.

References m_SessionId.

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

Definition at line 196 of file evaimsend.h.

References m_TransferType.

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

Definition at line 195 of file evaimsend.h.

References m_WanIp.

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

Definition at line 194 of file evaimsend.h.

References m_WanPort.


Member Data Documentation

std::string SendFileExRequestPacket::m_FileName [private]
 

Definition at line 210 of file evaimsend.h.

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

unsigned int SendFileExRequestPacket::m_FileSize [private]
 

Definition at line 211 of file evaimsend.h.

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

unsigned short SendFileExRequestPacket::m_SessionId [private]
 

Definition at line 209 of file evaimsend.h.

Referenced by getSessionId(), operator=(), putContents(), and setSessionId().

unsigned char SendFileExRequestPacket::m_TransferType [private]
 

Definition at line 214 of file evaimsend.h.

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

unsigned int SendFileExRequestPacket::m_WanIp [private]
 

Definition at line 213 of file evaimsend.h.

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

unsigned short SendFileExRequestPacket::m_WanPort [private]
 

Definition at line 212 of file evaimsend.h.

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


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