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

AddFriendAuthPacket Class Reference

#include <evaaddfriend.h>

Inherits OutPacket.

Inheritance diagram for AddFriendAuthPacket:

Inheritance graph
[legend]
Collaboration diagram for AddFriendAuthPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AddFriendAuthPacket ()
 AddFriendAuthPacket (const int id, const uint8_t type)
 AddFriendAuthPacket (AddFriendAuthPacket &rhs)
virtual ~AddFriendAuthPacket ()
virtual OutPacketcopy ()
AddFriendAuthPacketoperator= (const AddFriendAuthPacket &rhs)
const std::string getMessage () const
void setMessage (const std::string &msg)
const int getBuddyQQ () const
void setBuddyQQ (const int id)
const uint8_t getType () const
void setType (const uint8_t type)

Protected Member Functions

virtual int putBody (unsigned char *buf)

Private Attributes

uint8_t type
int buddyQQNum
std::string message

Static Private Attributes

static const unsigned char DIVIDER = 0x1f

Detailed Description

Definition at line 68 of file evaaddfriend.h.


Constructor & Destructor Documentation

AddFriendAuthPacket::AddFriendAuthPacket  ) 
 

Definition at line 106 of file evaaddfriend.cpp.

Referenced by copy().

AddFriendAuthPacket::AddFriendAuthPacket const int  id,
const uint8_t  type
 

Definition at line 112 of file evaaddfriend.cpp.

AddFriendAuthPacket::AddFriendAuthPacket AddFriendAuthPacket rhs  ) 
 

Definition at line 120 of file evaaddfriend.cpp.

References buddyQQNum, getBuddyQQ(), getMessage(), getType(), message, and type.

Here is the call graph for this function:

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

Definition at line 75 of file evaaddfriend.h.


Member Function Documentation

virtual OutPacket* AddFriendAuthPacket::copy  )  [inline, virtual]
 

Definition at line 78 of file evaaddfriend.h.

References AddFriendAuthPacket().

Here is the call graph for this function:

const int AddFriendAuthPacket::getBuddyQQ  )  const [inline]
 

Definition at line 84 of file evaaddfriend.h.

References buddyQQNum.

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

const std::string AddFriendAuthPacket::getMessage  )  const [inline]
 

Definition at line 81 of file evaaddfriend.h.

References message.

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

const uint8_t AddFriendAuthPacket::getType  )  const [inline]
 

Definition at line 87 of file evaaddfriend.h.

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

AddFriendAuthPacket & AddFriendAuthPacket::operator= const AddFriendAuthPacket rhs  ) 
 

Definition at line 128 of file evaaddfriend.cpp.

References buddyQQNum, getBuddyQQ(), getMessage(), getType(), message, and type.

Here is the call graph for this function:

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

Reimplemented from OutPacket.

Definition at line 137 of file evaaddfriend.cpp.

References buddyQQNum, DIVIDER, message, and type.

void AddFriendAuthPacket::setBuddyQQ const int  id  )  [inline]
 

Definition at line 85 of file evaaddfriend.h.

References buddyQQNum.

void AddFriendAuthPacket::setMessage const std::string &  msg  )  [inline]
 

Definition at line 82 of file evaaddfriend.h.

References message.

void AddFriendAuthPacket::setType const uint8_t  type  )  [inline]
 

Definition at line 88 of file evaaddfriend.h.


Member Data Documentation

int AddFriendAuthPacket::buddyQQNum [private]
 

Definition at line 95 of file evaaddfriend.h.

Referenced by AddFriendAuthPacket(), getBuddyQQ(), operator=(), putBody(), and setBuddyQQ().

const unsigned char AddFriendAuthPacket::DIVIDER = 0x1f [static, private]
 

Definition at line 93 of file evaaddfriend.h.

Referenced by putBody().

std::string AddFriendAuthPacket::message [private]
 

Definition at line 96 of file evaaddfriend.h.

Referenced by AddFriendAuthPacket(), getMessage(), operator=(), putBody(), and setMessage().

uint8_t AddFriendAuthPacket::type [private]
 

Definition at line 94 of file evaaddfriend.h.

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


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