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

QunReplyPacket Class Reference

#include <evaqun.h>

Inherits InPacket.

Inheritance diagram for QunReplyPacket:

Inheritance graph
[legend]
Collaboration diagram for QunReplyPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QunReplyPacket ()
 QunReplyPacket (unsigned char *buf, int len)
 QunReplyPacket (const QunReplyPacket &rhs)
virtual ~QunReplyPacket ()
InPacketcopy ()
QunReplyPacketoperator= (const QunReplyPacket &rhs)
const char getQunCommand () const
const char getReplyCode () const
const int getQunID () const
const int getExtID () const
const char getType () const
const int getParentQunID () const
const std::string getErrorMessage () const
const unsigned char getSearchType () const
const QunInfogetQunInfo () const
const std::map< int, QunMember > & getMemberList () const
const std::list< QunInfo > & getQunInfoList () const
const std::list< int > & getQQNumberList () const
const std::list< FriendItem > & getMemberInfoList () const
const unsigned char getJoinReply () const
const bool isReplyOK () const
const int getTargetQQ () const
const unsigned char getOpCode () const
const unsigned int getQunVersionID () const
const std::string & getRealName () const
const unsigned char getGender () const
const std::string & getPhone () const
const std::string & getEmail () const
const std::string & getMemo () const
const int getCardVersion () const
const int getNextStartIndex () const
const std::map< int, std::string > & getRealNames () const

Protected Member Functions

virtual void parseBody ()

Private Member Functions

int parseSendIMReply (unsigned char *buf, int len)
int parseSendTempQunIMReply (unsigned char *buf, int len)
int parseCreateReply (unsigned char *buf, int len)
int parseCreateTempQun (unsigned char *buf, int len)
int parseActivateReply (unsigned char *buf, int len)
int parseModifyMemberReply (unsigned char *buf, int len)
int parseGetInfoReply (unsigned char *buf, int len)
int parseExitReply (unsigned char *buf, int len)
int parseGetMemberInfoReply (unsigned char *buf, int len)
int parseGetOnlineMemberReply (unsigned char *buf, int len)
int parseJoinReply (unsigned char *buf, int len)
int parseJoinAuthReply (unsigned char *buf, int len)
int parseModifyInfoReply (unsigned char *buf, int len)
int parseSearchReply (unsigned char *buf, int len)
int parseGetTempQunInfoReply (unsigned char *buf, int len)
int parseExitTempQunReply (unsigned char *buf, int len)
int parseGetTempQunMembers (unsigned char *buf, int len)
int parseModifyQunCard (unsigned char *buf, int len)
int parseRequestAllRealNames (unsigned char *buf, int len)
int parseRequestQunCard (unsigned char *buf, int len)
int parseQunAdminOperation (unsigned char *buf, int len)
int parseQunTransfer (unsigned char *buf, int len)

Private Attributes

char qunCommand
char replyCode
int qunID
int externalID
char type
int parentQunID
std::string errorMessage
unsigned char searchType
QunInfo info
std::list< QunInfoqunInfoList
std::list< int > qunQQNumberList
std::map< int, QunMembermemberList
 used for getting Qun information request only
std::list< FriendItemmemberInfoList
 public List memberInfos;
unsigned char joinReply
 join Qun request use only
int targetQQ
unsigned char opCode
unsigned int versionID
int m_NextStart
 used for Get All Realname operation
int m_CardVersion
std::map< int, std::string > m_RealNameList
std::string realName
 the following 5 varaibles are for the result of requesting Qun card, and still the qunID, targetQQ are used as well
unsigned char gender
std::string phone
std::string email
std::string memo

Detailed Description

Definition at line 115 of file evaqun.h.


Constructor & Destructor Documentation

QunReplyPacket::QunReplyPacket  )  [inline]
 

Definition at line 117 of file evaqun.h.

Referenced by copy().

QunReplyPacket::QunReplyPacket unsigned char *  buf,
int  len
 

Definition at line 269 of file evaqun.cpp.

QunReplyPacket::QunReplyPacket const QunReplyPacket rhs  ) 
 

Definition at line 274 of file evaqun.cpp.

QunReplyPacket::~QunReplyPacket  )  [virtual]
 

Definition at line 280 of file evaqun.cpp.


Member Function Documentation

InPacket* QunReplyPacket::copy  )  [inline]
 

Definition at line 122 of file evaqun.h.

References QunReplyPacket().

Here is the call graph for this function:

const int QunReplyPacket::getCardVersion  )  const [inline]
 

Definition at line 153 of file evaqun.h.

References m_CardVersion.

const std::string& QunReplyPacket::getEmail  )  const [inline]
 

Definition at line 150 of file evaqun.h.

References email.

Referenced by operator=().

const std::string QunReplyPacket::getErrorMessage  )  const [inline]
 

Definition at line 131 of file evaqun.h.

References errorMessage.

Referenced by operator=().

const int QunReplyPacket::getExtID  )  const [inline]
 

Definition at line 128 of file evaqun.h.

References externalID.

Referenced by operator=().

const unsigned char QunReplyPacket::getGender  )  const [inline]
 

Definition at line 148 of file evaqun.h.

References gender.

Referenced by operator=().

const unsigned char QunReplyPacket::getJoinReply  )  const [inline]
 

Definition at line 139 of file evaqun.h.

References joinReply.

Referenced by operator=().

const std::list<FriendItem>& QunReplyPacket::getMemberInfoList  )  const [inline]
 

Definition at line 138 of file evaqun.h.

References memberInfoList.

Referenced by operator=().

const std::map<int, QunMember>& QunReplyPacket::getMemberList  )  const [inline]
 

Definition at line 135 of file evaqun.h.

References memberList.

Referenced by operator=().

const std::string& QunReplyPacket::getMemo  )  const [inline]
 

Definition at line 151 of file evaqun.h.

References memo.

Referenced by operator=().

const int QunReplyPacket::getNextStartIndex  )  const [inline]
 

Definition at line 154 of file evaqun.h.

References m_NextStart.

const unsigned char QunReplyPacket::getOpCode  )  const [inline]
 

Definition at line 144 of file evaqun.h.

References opCode.

Referenced by operator=().

const int QunReplyPacket::getParentQunID  )  const [inline]
 

Definition at line 130 of file evaqun.h.

References parentQunID.

Referenced by operator=().

const std::string& QunReplyPacket::getPhone  )  const [inline]
 

Definition at line 149 of file evaqun.h.

References phone.

Referenced by operator=().

const std::list<int>& QunReplyPacket::getQQNumberList  )  const [inline]
 

Definition at line 137 of file evaqun.h.

References qunQQNumberList.

Referenced by operator=().

const char QunReplyPacket::getQunCommand  )  const [inline]
 

Definition at line 125 of file evaqun.h.

References qunCommand.

Referenced by operator=().

const int QunReplyPacket::getQunID  )  const [inline]
 

Definition at line 127 of file evaqun.h.

References qunID.

Referenced by operator=().

const QunInfo& QunReplyPacket::getQunInfo  )  const [inline]
 

Definition at line 134 of file evaqun.h.

References info.

Referenced by operator=().

const std::list<QunInfo>& QunReplyPacket::getQunInfoList  )  const [inline]
 

Definition at line 136 of file evaqun.h.

References qunInfoList.

Referenced by operator=().

const unsigned int QunReplyPacket::getQunVersionID  )  const [inline]
 

Definition at line 145 of file evaqun.h.

References versionID.

Referenced by operator=().

const std::string& QunReplyPacket::getRealName  )  const [inline]
 

Definition at line 147 of file evaqun.h.

References realName.

Referenced by operator=().

const std::map<int, std::string>& QunReplyPacket::getRealNames  )  const [inline]
 

Definition at line 155 of file evaqun.h.

References m_RealNameList.

const char QunReplyPacket::getReplyCode  )  const [inline]
 

Definition at line 126 of file evaqun.h.

References replyCode.

Referenced by operator=().

const unsigned char QunReplyPacket::getSearchType  )  const [inline]
 

Definition at line 133 of file evaqun.h.

References searchType.

Referenced by operator=().

const int QunReplyPacket::getTargetQQ  )  const [inline]
 

Definition at line 143 of file evaqun.h.

References targetQQ.

Referenced by operator=().

const char QunReplyPacket::getType  )  const [inline]
 

Definition at line 129 of file evaqun.h.

References type.

Referenced by operator=().

const bool QunReplyPacket::isReplyOK  )  const
 

Definition at line 401 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, and replyCode.

QunReplyPacket & QunReplyPacket::operator= const QunReplyPacket rhs  ) 
 

Definition at line 284 of file evaqun.cpp.

References email, errorMessage, externalID, gender, getEmail(), getErrorMessage(), getExtID(), getGender(), getJoinReply(), getMemberInfoList(), getMemberList(), getMemo(), getOpCode(), getParentQunID(), getPhone(), getQQNumberList(), getQunCommand(), getQunID(), getQunInfo(), getQunInfoList(), getQunVersionID(), getRealName(), getReplyCode(), getSearchType(), getTargetQQ(), getType(), info, joinReply, memberInfoList, memberList, memo, opCode, parentQunID, phone, qunCommand, qunID, qunInfoList, qunQQNumberList, realName, replyCode, searchType, targetQQ, type, and versionID.

Here is the call graph for this function:

int QunReplyPacket::parseActivateReply unsigned char *  buf,
int  len
[private]
 

Definition at line 471 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

void QunReplyPacket::parseBody  )  [protected, virtual]
 

Reimplemented from InPacket.

Definition at line 313 of file evaqun.cpp.

References InPacket::bodyLength, InPacket::decryptedBuf, errorMessage, parseActivateReply(), parseCreateReply(), parseCreateTempQun(), parseExitReply(), parseExitTempQunReply(), parseGetInfoReply(), parseGetMemberInfoReply(), parseGetOnlineMemberReply(), parseGetTempQunInfoReply(), parseGetTempQunMembers(), parseJoinAuthReply(), parseJoinReply(), parseModifyInfoReply(), parseModifyMemberReply(), parseModifyQunCard(), parseQunAdminOperation(), parseQunTransfer(), parseRequestAllRealNames(), parseRequestQunCard(), parseSearchReply(), parseSendIMReply(), parseSendTempQunIMReply(), QQ_QUN_CMD_ACTIVATE_QUN, QQ_QUN_CMD_ADMIN, QQ_QUN_CMD_CREATE_QUN, QQ_QUN_CMD_CREATE_TEMP_QUN, QQ_QUN_CMD_EXIT_QUN, QQ_QUN_CMD_EXIT_TEMP_QUN, QQ_QUN_CMD_GET_MEMBER_INFO, QQ_QUN_CMD_GET_ONLINE_MEMBER, QQ_QUN_CMD_GET_QUN_INFO, QQ_QUN_CMD_GET_TEMP_QUN_INFO, QQ_QUN_CMD_GET_TEMP_QUN_MEMBERS, QQ_QUN_CMD_JOIN_QUN, QQ_QUN_CMD_JOIN_QUN_AUTH, QQ_QUN_CMD_MODIFY_CARD, QQ_QUN_CMD_MODIFY_MEMBER, QQ_QUN_CMD_MODIFY_QUN_INFO, QQ_QUN_CMD_REPLY_OK, QQ_QUN_CMD_REQUEST_ALL_REALNAMES, QQ_QUN_CMD_REQUEST_CARD, QQ_QUN_CMD_SEARCH_QUN, QQ_QUN_CMD_SEND_IM, QQ_QUN_CMD_SEND_IM_EX, QQ_QUN_CMD_SEND_TEMP_QUN_IM, QQ_QUN_CMD_TRANSFER, qunCommand, and replyCode.

Here is the call graph for this function:

int QunReplyPacket::parseCreateReply unsigned char *  buf,
int  len
[private]
 

Definition at line 437 of file evaqun.cpp.

References externalID, QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseCreateTempQun unsigned char *  buf,
int  len
[private]
 

Definition at line 454 of file evaqun.cpp.

References parentQunID, QQ_QUN_CMD_REPLY_OK, qunID, replyCode, and type.

Referenced by parseBody().

int QunReplyPacket::parseExitReply unsigned char *  buf,
int  len
[private]
 

Definition at line 532 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseExitTempQunReply unsigned char *  buf,
int  len
[private]
 

Definition at line 663 of file evaqun.cpp.

References parentQunID, QQ_QUN_CMD_REPLY_OK, qunID, replyCode, and type.

Referenced by parseBody().

int QunReplyPacket::parseGetInfoReply unsigned char *  buf,
int  len
[private]
 

Definition at line 501 of file evaqun.cpp.

References QunMember::admin, externalID, QunInfo::getExtID(), QunInfo::getQunID(), QunMember::groupIndex, info, memberList, QQ_QUN_CMD_REPLY_OK, QunMember::qqNum, qunID, QunInfo::readQunInfo(), and replyCode.

Referenced by parseBody().

Here is the call graph for this function:

int QunReplyPacket::parseGetMemberInfoReply unsigned char *  buf,
int  len
[private]
 

Definition at line 545 of file evaqun.cpp.

References info, memberInfoList, QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseGetOnlineMemberReply unsigned char *  buf,
int  len
[private]
 

Definition at line 566 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, qunQQNumberList, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseGetTempQunInfoReply unsigned char *  buf,
int  len
[private]
 

Definition at line 644 of file evaqun.cpp.

References QunInfo::getExtID(), QunInfo::getQunID(), QunInfo::getType(), info, parentQunID, QQ_QUN_CMD_REPLY_OK, qunID, qunQQNumberList, QunInfo::readTempQunInfo(), replyCode, and type.

Referenced by parseBody().

Here is the call graph for this function:

int QunReplyPacket::parseGetTempQunMembers unsigned char *  buf,
int  len
[private]
 

Definition at line 682 of file evaqun.cpp.

References parentQunID, QQ_QUN_CMD_REPLY_OK, qunID, qunQQNumberList, replyCode, and type.

Referenced by parseBody().

int QunReplyPacket::parseJoinAuthReply unsigned char *  buf,
int  len
[private]
 

Definition at line 599 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseJoinReply unsigned char *  buf,
int  len
[private]
 

Definition at line 585 of file evaqun.cpp.

References joinReply, QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseModifyInfoReply unsigned char *  buf,
int  len
[private]
 

Definition at line 612 of file evaqun.cpp.

References qunID.

Referenced by parseBody().

int QunReplyPacket::parseModifyMemberReply unsigned char *  buf,
int  len
[private]
 

Definition at line 484 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseModifyQunCard unsigned char *  buf,
int  len
[private]
 

Definition at line 707 of file evaqun.cpp.

References qunID, and targetQQ.

Referenced by parseBody().

int QunReplyPacket::parseQunAdminOperation unsigned char *  buf,
int  len
[private]
 

Definition at line 795 of file evaqun.cpp.

References opCode, QQ_QUN_CMD_REPLY_OK, qunID, replyCode, targetQQ, and versionID.

Referenced by parseBody().

int QunReplyPacket::parseQunTransfer unsigned char *  buf,
int  len
[private]
 

Definition at line 819 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, replyCode, targetQQ, and versionID.

Referenced by parseBody().

int QunReplyPacket::parseRequestAllRealNames unsigned char *  buf,
int  len
[private]
 

Definition at line 723 of file evaqun.cpp.

References m_CardVersion, m_NextStart, m_RealNameList, qunID, and EvaUtil::read32().

Referenced by parseBody().

Here is the call graph for this function:

int QunReplyPacket::parseRequestQunCard unsigned char *  buf,
int  len
[private]
 

Definition at line 746 of file evaqun.cpp.

References email, gender, memo, phone, QQ_QUN_CMD_REPLY_OK, qunID, realName, replyCode, and targetQQ.

Referenced by parseBody().

int QunReplyPacket::parseSearchReply unsigned char *  buf,
int  len
[private]
 

Definition at line 625 of file evaqun.cpp.

References info, QQ_QUN_CMD_REPLY_OK, qunInfoList, QunInfo::readQunInfoFromSearchReply(), replyCode, and searchType.

Referenced by parseBody().

Here is the call graph for this function:

int QunReplyPacket::parseSendIMReply unsigned char *  buf,
int  len
[private]
 

Definition at line 407 of file evaqun.cpp.

References QQ_QUN_CMD_REPLY_OK, qunID, and replyCode.

Referenced by parseBody().

int QunReplyPacket::parseSendTempQunIMReply unsigned char *  buf,
int  len
[private]
 

Definition at line 420 of file evaqun.cpp.

References parentQunID, QQ_QUN_CMD_REPLY_OK, qunID, replyCode, and type.

Referenced by parseBody().


Member Data Documentation

std::string QunReplyPacket::email [private]
 

Definition at line 209 of file evaqun.h.

Referenced by getEmail(), operator=(), and parseRequestQunCard().

std::string QunReplyPacket::errorMessage [private]
 

error messages if replyCode is QQ_QUN_CMD_REPLY_OK

Definition at line 174 of file evaqun.h.

Referenced by getErrorMessage(), operator=(), and parseBody().

int QunReplyPacket::externalID [private]
 

external ID of a Qun

Definition at line 167 of file evaqun.h.

Referenced by getExtID(), operator=(), parseCreateReply(), and parseGetInfoReply().

unsigned char QunReplyPacket::gender [private]
 

Definition at line 207 of file evaqun.h.

Referenced by getGender(), operator=(), and parseRequestQunCard().

QunInfo QunReplyPacket::info [private]
 

Definition at line 177 of file evaqun.h.

Referenced by getQunInfo(), operator=(), parseGetInfoReply(), parseGetMemberInfoReply(), parseGetTempQunInfoReply(), and parseSearchReply().

unsigned char QunReplyPacket::joinReply [private]
 

join Qun request use only

Definition at line 194 of file evaqun.h.

Referenced by getJoinReply(), operator=(), and parseJoinReply().

int QunReplyPacket::m_CardVersion [private]
 

Definition at line 202 of file evaqun.h.

Referenced by getCardVersion(), and parseRequestAllRealNames().

int QunReplyPacket::m_NextStart [private]
 

used for Get All Realname operation

Definition at line 201 of file evaqun.h.

Referenced by getNextStartIndex(), and parseRequestAllRealNames().

std::map<int, std::string> QunReplyPacket::m_RealNameList [private]
 

Definition at line 203 of file evaqun.h.

Referenced by getRealNames(), and parseRequestAllRealNames().

std::list<FriendItem> QunReplyPacket::memberInfoList [private]
 

public List memberInfos;

Definition at line 192 of file evaqun.h.

Referenced by getMemberInfoList(), operator=(), and parseGetMemberInfoReply().

std::map<int,QunMember> QunReplyPacket::memberList [private]
 

used for getting Qun information request only

Definition at line 189 of file evaqun.h.

Referenced by getMemberList(), operator=(), and parseGetInfoReply().

std::string QunReplyPacket::memo [private]
 

Definition at line 210 of file evaqun.h.

Referenced by getMemo(), operator=(), and parseRequestQunCard().

unsigned char QunReplyPacket::opCode [private]
 

Definition at line 197 of file evaqun.h.

Referenced by getOpCode(), operator=(), and parseQunAdminOperation().

int QunReplyPacket::parentQunID [private]
 

internal ID of parent Qun, used for temporary Qun

Definition at line 171 of file evaqun.h.

Referenced by getParentQunID(), operator=(), parseCreateTempQun(), parseExitTempQunReply(), parseGetTempQunInfoReply(), parseGetTempQunMembers(), and parseSendTempQunIMReply().

std::string QunReplyPacket::phone [private]
 

Definition at line 208 of file evaqun.h.

Referenced by getPhone(), operator=(), and parseRequestQunCard().

char QunReplyPacket::qunCommand [private]
 

sub-command of Qun

Definition at line 161 of file evaqun.h.

Referenced by getQunCommand(), operator=(), and parseBody().

int QunReplyPacket::qunID [private]
 

internal ID of a Qun

Definition at line 165 of file evaqun.h.

Referenced by getQunID(), operator=(), parseActivateReply(), parseCreateReply(), parseCreateTempQun(), parseExitReply(), parseExitTempQunReply(), parseGetInfoReply(), parseGetMemberInfoReply(), parseGetOnlineMemberReply(), parseGetTempQunInfoReply(), parseGetTempQunMembers(), parseJoinAuthReply(), parseJoinReply(), parseModifyInfoReply(), parseModifyMemberReply(), parseModifyQunCard(), parseQunAdminOperation(), parseQunTransfer(), parseRequestAllRealNames(), parseRequestQunCard(), parseSendIMReply(), and parseSendTempQunIMReply().

std::list<QunInfo> QunReplyPacket::qunInfoList [private]
 

Qun information for getting Qun information request searching Qun