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

SendIM Class Reference

#include <evaimsend.h>

Inherits OutPacket.

Inherited by SendFileAcceptPacket, SendFileExRequestPacket, SendFileNotifyAgentPacket, SendFileRequestPacket, SendIpExNotifyPacket, and SendTextIMPacket.

Inheritance diagram for SendIM:

Inheritance graph
[legend]
Collaboration diagram for SendIM:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SendIM ()
 SendIM (const unsigned short type)
 SendIM (const SendIM &rhs)
virtual ~SendIM ()
const int getReceiver () const
void setReceiver (int receiver)
const short getFaceCode () const
void setFaceCode (short face)
const unsigned short getContentType () const
const time_t getSendTime () const
const unsigned short getMsgSequence () const
void setMsgSequence (const unsigned short seq)
SendIMoperator= (const SendIM &rhs)

Protected Member Functions

virtual int putBody (unsigned char *buf)
virtual int putContents (unsigned char *buf)

Private Attributes

int receiver
short face
unsigned short contentType
unsigned short m_MsgSequence
time_t m_SendTime

Detailed Description

Definition at line 31 of file evaimsend.h.


Constructor & Destructor Documentation

SendIM::SendIM  )  [inline]
 

Definition at line 34 of file evaimsend.h.

SendIM::SendIM const unsigned short  type  ) 
 

Definition at line 30 of file evaimsend.cpp.

References m_MsgSequence, and m_SendTime.

SendIM::SendIM const SendIM rhs  ) 
 

Definition at line 40 of file evaimsend.cpp.

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

Definition at line 37 of file evaimsend.h.


Member Function Documentation

const unsigned short SendIM::getContentType  )  const [inline]
 

Definition at line 45 of file evaimsend.h.

References contentType.

Referenced by operator=(), and SendFileExRequestPacket::putContents().

const short SendIM::getFaceCode  )  const [inline]
 

Definition at line 42 of file evaimsend.h.

References face.

Referenced by operator=().

const unsigned short SendIM::getMsgSequence  )  const [inline]
 

Definition at line 48 of file evaimsend.h.

References m_MsgSequence.

Referenced by operator=().

const int SendIM::getReceiver  )  const [inline]
 

Definition at line 39 of file evaimsend.h.

References receiver.

Referenced by operator=().

const time_t SendIM::getSendTime  )  const [inline]
 

Definition at line 46 of file evaimsend.h.

References m_SendTime.

Referenced by operator=().

SendIM & SendIM::operator= const SendIM rhs  ) 
 

Definition at line 46 of file evaimsend.cpp.

References contentType, face, getContentType(), getFaceCode(), getMsgSequence(), getReceiver(), getSendTime(), m_MsgSequence, m_SendTime, and receiver.

Here is the call graph for this function:

int SendIM::putBody unsigned char *  buf  )  [protected, virtual]
 

Reimplemented from OutPacket.

Definition at line 57 of file evaimsend.cpp.

References contentType, face, Packet::getFileSessionKey(), Packet::getQQ(), m_MsgSequence, m_SendTime, putContents(), QQ_KEY_LENGTH, receiver, Packet::sequence, Packet::version, EvaUtil::write16(), and EvaUtil::write32().

Here is the call graph for this function:

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

Reimplemented in SendTextIMPacket, SendFileRequestPacket, SendFileExRequestPacket, SendFileAcceptPacket, SendIpExNotifyPacket, and SendFileNotifyAgentPacket.

Definition at line 107 of file evaimsend.cpp.

Referenced by putBody().

void SendIM::setFaceCode short  face  )  [inline]
 

Definition at line 43 of file evaimsend.h.

void SendIM::setMsgSequence const unsigned short  seq  )  [inline]
 

Definition at line 49 of file evaimsend.h.

References m_MsgSequence.

void SendIM::setReceiver int  receiver  )  [inline]
 

Definition at line 40 of file evaimsend.h.


Member Data Documentation

unsigned short SendIM::contentType [private]
 

Definition at line 58 of file evaimsend.h.

Referenced by getContentType(), operator=(), and putBody().

short SendIM::face [private]
 

Definition at line 57 of file evaimsend.h.

Referenced by getFaceCode(), operator=(), and putBody().

unsigned short SendIM::m_MsgSequence [private]
 

Definition at line 59 of file evaimsend.h.

Referenced by getMsgSequence(), operator=(), putBody(), SendIM(), and setMsgSequence().

time_t SendIM::m_SendTime [private]
 

Definition at line 60 of file evaimsend.h.

Referenced by getSendTime(), operator=(), putBody(), and SendIM().

int SendIM::receiver [private]
 

Definition at line 56 of file evaimsend.h.

Referenced by getReceiver(), operator=(), and putBody().


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