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

ReceiveIMPacket Class Reference

#include <evaimreceive.h>

Inherits InPacket.

Inheritance diagram for ReceiveIMPacket:

Inheritance graph
[legend]
Collaboration diagram for ReceiveIMPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReceiveIMPacket ()
 ReceiveIMPacket (unsigned char *buf, const int len)
 ReceiveIMPacket (const ReceiveIMPacket &rhs)
 ~ReceiveIMPacket ()
const int getSender () const
const int getReceiver () const
const int getIntSequence () const
const int getSenderIP () const
const short getSenderPort () const
const short getIMType () const
const char * getReplyKey () const
const int getBodyLength () const
const unsigned char * getBodyData () const
ReceiveIMPacketoperator= (const ReceiveIMPacket &rhs)

Static Public Member Functions

static std::string convertToShow (const std::string &src, const unsigned char type=QQ_IM_NORMAL_REPLY)

Protected Member Functions

virtual void parseBody ()

Private Member Functions

int readHeader (const unsigned char *buf)

Private Attributes

char replyKey [REPLY_KEY_LENGTH]
int sender
int receiver
int intSequence
int senderIP
short senderPort
short type
int bodyOffset

Detailed Description

Definition at line 28 of file evaimreceive.h.


Constructor & Destructor Documentation

ReceiveIMPacket::ReceiveIMPacket  )  [inline]
 

Definition at line 31 of file evaimreceive.h.

ReceiveIMPacket::ReceiveIMPacket unsigned char *  buf,
const int  len
 

Definition at line 31 of file evaimreceive.cpp.

ReceiveIMPacket::ReceiveIMPacket const ReceiveIMPacket rhs  ) 
 

Definition at line 37 of file evaimreceive.cpp.

References bodyOffset, getBodyLength(), getIMType(), InPacket::getLength(), getReceiver(), getReplyKey(), getSender(), getSenderIP(), getSenderPort(), Packet::getSequence(), receiver, REPLY_KEY_LENGTH, replyKey, sender, senderIP, senderPort, Packet::sequence, and type.

Here is the call graph for this function:

ReceiveIMPacket::~ReceiveIMPacket  )  [inline]
 

Definition at line 34 of file evaimreceive.h.


Member Function Documentation

std::string ReceiveIMPacket::convertToShow const std::string &  src,
const unsigned char  type = QQ_IM_NORMAL_REPLY
[static]
 

Definition at line 51 of file evaimreceive.cpp.

References EvaUtil::customSmileyToText(), QQ_IM_IMAGE_REPLY, and EvaUtil::smileyToText().

Referenced by ReceivedNormalIM::parseContents(), and ReceivedQunIM::parseData().

Here is the call graph for this function:

const unsigned char* ReceiveIMPacket::getBodyData  )  const [inline]
 

Definition at line 45 of file evaimreceive.h.

References bodyOffset, and InPacket::decryptedBuf.

const int ReceiveIMPacket::getBodyLength  )  const [inline]
 

Definition at line 44 of file evaimreceive.h.

References InPacket::bodyLength, and bodyOffset.

Referenced by operator=(), and ReceiveIMPacket().

const short ReceiveIMPacket::getIMType  )  const [inline]
 

Definition at line 41 of file evaimreceive.h.

References type.

Referenced by operator=(), and ReceiveIMPacket().

const int ReceiveIMPacket::getIntSequence  )  const [inline]
 

Definition at line 38 of file evaimreceive.h.

References intSequence.

const int ReceiveIMPacket::getReceiver  )  const [inline]
 

Definition at line 37 of file evaimreceive.h.

References receiver.

Referenced by operator=(), and ReceiveIMPacket().

const char* ReceiveIMPacket::getReplyKey  )  const [inline]
 

Definition at line 43 of file evaimreceive.h.

References replyKey.

Referenced by operator=(), and ReceiveIMPacket().

const int ReceiveIMPacket::getSender  )  const [inline]
 

Definition at line 36 of file evaimreceive.h.

References sender.

Referenced by operator=(), and ReceiveIMPacket().

const int ReceiveIMPacket::getSenderIP  )  const [inline]
 

Definition at line 39 of file evaimreceive.h.

References senderIP.

Referenced by operator=(), and ReceiveIMPacket().

const short ReceiveIMPacket::getSenderPort  )  const [inline]
 

Definition at line 40 of file evaimreceive.h.

References senderPort.

Referenced by operator=(), and ReceiveIMPacket().

ReceiveIMPacket & ReceiveIMPacket::operator= const ReceiveIMPacket rhs  ) 
 

Definition at line 81 of file evaimreceive.cpp.

References bodyOffset, getBodyLength(), getIMType(), InPacket::getLength(), getReceiver(), getReplyKey(), getSender(), getSenderIP(), getSenderPort(), Packet::getSequence(), receiver, REPLY_KEY_LENGTH, replyKey, sender, senderIP, senderPort, Packet::sequence, and type.

Here is the call graph for this function:

void ReceiveIMPacket::parseBody  )  [protected, virtual]
 

Reimplemented from InPacket.

Definition at line 96 of file evaimreceive.cpp.

References InPacket::bodyLength, bodyOffset, InPacket::decryptedBuf, readHeader(), REPLY_KEY_LENGTH, and replyKey.

Here is the call graph for this function:

int ReceiveIMPacket::readHeader const unsigned char *  buf  )  [private]
 

Definition at line 107 of file evaimreceive.cpp.

References intSequence, receiver, sender, senderIP, senderPort, and type.

Referenced by parseBody().


Member Data Documentation

int ReceiveIMPacket::bodyOffset [private]
 

Definition at line 62 of file evaimreceive.h.

Referenced by getBodyData(), getBodyLength(), operator=(), parseBody(), and ReceiveIMPacket().

int ReceiveIMPacket::intSequence [private]
 

Definition at line 57 of file evaimreceive.h.

Referenced by getIntSequence(), and readHeader().

int ReceiveIMPacket::receiver [private]
 

Definition at line 56 of file evaimreceive.h.

Referenced by getReceiver(), operator=(), readHeader(), and ReceiveIMPacket().

char ReceiveIMPacket::replyKey[REPLY_KEY_LENGTH] [private]
 

Definition at line 53 of file evaimreceive.h.

Referenced by getReplyKey(), operator=(), parseBody(), and ReceiveIMPacket().

int ReceiveIMPacket::sender [private]
 

Definition at line 55 of file evaimreceive.h.

Referenced by getSender(), operator=(), readHeader(), and ReceiveIMPacket().

int ReceiveIMPacket::senderIP [private]
 

Definition at line 58 of file evaimreceive.h.

Referenced by getSenderIP(), operator=(), readHeader(), and ReceiveIMPacket().

short ReceiveIMPacket::senderPort [private]
 

Definition at line 59 of file evaimreceive.h.

Referenced by getSenderPort(), operator=(), readHeader(), and ReceiveIMPacket().

short ReceiveIMPacket::type [private]
 

Definition at line 60 of file evaimreceive.h.

Referenced by getIMType(), operator=(), readHeader(), and ReceiveIMPacket().


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