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

FriendItem Class Reference

#include <evafriend.h>

List of all members.

Public Member Functions

 FriendItem ()
 FriendItem (const unsigned char *buf, int *len)
 FriendItem (const FriendItem &rhs)
 ~FriendItem ()
const int getQQ () const
const short getFace () const
const char getAge () const
const char getGender () const
const std::string & getNick () const
const char getExtFlag () const
const char getCommonFlag () const
const long getLoginTime () const
const long getIdleTime () const
const long getLastRefreshTime () const
void setQQ (const int id)
void setFace (const short f)
void setAge (const char a)
void setGender (const char g)
void setNick (const std::string &n)
void setExtFlag (const char ef)
void setCommonFlag (const char cf)
void setOnline (const bool online)
const bool isOnline () const
const unsigned short getQunGroupIndex () const
const unsigned short getQunAdminValue () const
void setQunGroupIndex (const unsigned char index)
void setQunAdminValue (const unsigned char value)
const bool isAdmin () const
const bool isShareHolder () const
void setQunRealName (const std::string name)
void setQunRealNameVersion (const int version)
const std::string & getQunRealName () const
const int getQunRealNameVersion () const
bool isMember ()
bool isBoy ()
FriendItemcopy ()
FriendItemoperator= (const FriendItem &rhs)

Private Member Functions

void parseData (const unsigned char *buf, int *len)

Private Attributes

int qqNum
short face
char age
char gender
std::string nick
char extFlag
char commonFlag
long loginTime
long idleTime
long lastRefreshTime
unsigned char qunGroupIndex
unsigned char qunAdminValue
int m_QunRealNameVersion
std::string m_QunRealName
bool mIsOnline


Detailed Description

Definition at line 28 of file evafriend.h.


Constructor & Destructor Documentation

FriendItem::FriendItem  ) 
 

Definition at line 29 of file evafriend.cpp.

References qunAdminValue, and qunGroupIndex.

Referenced by copy().

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

Definition at line 36 of file evafriend.cpp.

References parseData().

Here is the call graph for this function:

FriendItem::FriendItem const FriendItem rhs  ) 
 

Definition at line 42 of file evafriend.cpp.

FriendItem::~FriendItem  )  [inline]
 

Definition at line 33 of file evafriend.h.


Member Function Documentation

FriendItem* FriendItem::copy  )  [inline]
 

Definition at line 73 of file evafriend.h.

References FriendItem().

Here is the call graph for this function:

const char FriendItem::getAge  )  const [inline]
 

Definition at line 37 of file evafriend.h.

References age.

Referenced by operator=(), and QQFriend::setFriendItem().

const char FriendItem::getCommonFlag  )  const [inline]
 

Definition at line 41 of file evafriend.h.

References commonFlag.

Referenced by operator=(), and QQFriend::setFriendItem().

const char FriendItem::getExtFlag  )  const [inline]
 

Definition at line 40 of file evafriend.h.

References extFlag.

Referenced by operator=(), and QQFriend::setFriendItem().

const short FriendItem::getFace  )  const [inline]
 

Definition at line 36 of file evafriend.h.

References face.

Referenced by operator=(), and QQFriend::setFriendItem().

const char FriendItem::getGender  )  const [inline]
 

Definition at line 38 of file evafriend.h.

References gender.

Referenced by operator=(), and QQFriend::setFriendItem().

const long FriendItem::getIdleTime  )  const [inline]
 

Definition at line 43 of file evafriend.h.

References idleTime.

Referenced by operator=(), and QQFriend::setFriendItem().

const long FriendItem::getLastRefreshTime  )  const [inline]
 

Definition at line 44 of file evafriend.h.

References lastRefreshTime.

Referenced by operator=(), and QQFriend::setFriendItem().

const long FriendItem::getLoginTime  )  const [inline]
 

Definition at line 42 of file evafriend.h.

References loginTime.

Referenced by operator=(), and QQFriend::setFriendItem().

const std::string& FriendItem::getNick  )  const [inline]
 

Definition at line 39 of file evafriend.h.

References nick.

Referenced by operator=(), and QQFriend::setFriendItem().

const int FriendItem::getQQ  )  const [inline]
 

Definition at line 35 of file evafriend.h.

References qqNum.

Referenced by operator=(), QQFriend::setFriendItem(), and Qun::setMember().

const unsigned short FriendItem::getQunAdminValue  )  const [inline]
 

Definition at line 58 of file evafriend.h.

References qunAdminValue.

Referenced by operator=().

const unsigned short FriendItem::getQunGroupIndex  )  const [inline]
 

Definition at line 57 of file evafriend.h.

References qunGroupIndex.

Referenced by operator=().

const std::string& FriendItem::getQunRealName  )  const [inline]
 

Definition at line 68 of file evafriend.h.

References m_QunRealName.

Referenced by operator=().

const int FriendItem::getQunRealNameVersion  )  const [inline]
 

Definition at line 69 of file evafriend.h.

References m_QunRealNameVersion.

const bool FriendItem::isAdmin  )  const [inline]
 

Definition at line 62 of file evafriend.h.

References QUN_TYPE_ADMIN, and qunAdminValue.

bool FriendItem::isBoy  )  [inline]
 

Definition at line 72 of file evafriend.h.

References gender, and QQ_FRIEND_GENDER_GG.

bool FriendItem::isMember  )  [inline]
 

Definition at line 71 of file evafriend.h.

References commonFlag.

const bool FriendItem::isOnline  )  const [inline]
 

Definition at line 55 of file evafriend.h.

References mIsOnline.

Referenced by operator=().

const bool FriendItem::isShareHolder  )  const [inline]
 

Definition at line 63 of file evafriend.h.

References QUN_TYEP_SHAREHOLDER, and qunAdminValue.

FriendItem & FriendItem::operator= const FriendItem rhs  ) 
 

Definition at line 47 of file evafriend.cpp.

References age, commonFlag, extFlag, face, gender, getAge(), getCommonFlag(), getExtFlag(), getFace(), getGender(), getIdleTime(), getLastRefreshTime(), getLoginTime(), getNick(), getQQ(), getQunAdminValue(), getQunGroupIndex(), getQunRealName(), idleTime, isOnline(), lastRefreshTime, loginTime, m_QunRealName, mIsOnline, nick, qqNum, qunAdminValue, and qunGroupIndex.

Here is the call graph for this function:

void FriendItem::parseData const unsigned char *  buf,
int *  len
[private]
 

Definition at line 66 of file evafriend.cpp.

References age, commonFlag, extFlag, face, gender, nick, and qqNum.

Referenced by FriendItem().

void FriendItem::setAge const char  a  )  [inline]
 

Definition at line 48 of file evafriend.h.

References age.

void FriendItem::setCommonFlag const char  cf  )  [inline]
 

Definition at line 52 of file evafriend.h.

References commonFlag.

void FriendItem::setExtFlag const char  ef  )  [inline]
 

Definition at line 51 of file evafriend.h.

References extFlag.

void FriendItem::setFace const short  f  )  [inline]
 

Definition at line 47 of file evafriend.h.

References face.

void FriendItem::setGender const char  g  )  [inline]
 

Definition at line 49 of file evafriend.h.

References gender.

void FriendItem::setNick const std::string &  n  )  [inline]
 

Definition at line 50 of file evafriend.h.

References nick.

void FriendItem::setOnline const bool  online  )  [inline]
 

Definition at line 54 of file evafriend.h.

References mIsOnline.

void FriendItem::setQQ const int  id  )  [inline]
 

Definition at line 46 of file evafriend.h.

References qqNum.

void FriendItem::setQunAdminValue const unsigned char  value  )  [inline]
 

Definition at line 61 of file evafriend.h.

References qunAdminValue.

Referenced by Qun::setMember().

void FriendItem::setQunGroupIndex const unsigned char  index  )  [inline]
 

Definition at line 60 of file evafriend.h.

References qunGroupIndex.

Referenced by Qun::setMember().

void FriendItem::setQunRealName const std::string  name  )  [inline]
 

Definition at line 66 of file evafriend.h.

References m_QunRealName.

void FriendItem::setQunRealNameVersion const int  version  )  [inline]
 

Definition at line 67 of file evafriend.h.

References m_QunRealNameVersion.


Member Data Documentation

char FriendItem::age [private]
 

Definition at line 80 of file evafriend.h.

Referenced by getAge(), operator=(), parseData(), and setAge().

char FriendItem::commonFlag [private]
 

Definition at line 84 of file evafriend.h.

Referenced by getCommonFlag(), isMember(), operator=(), parseData(), and setCommonFlag().

char FriendItem::extFlag [private]
 

Definition at line 83 of file evafriend.h.

Referenced by getExtFlag(), operator=(), parseData(), and setExtFlag().

short FriendItem::face [private]
 

Definition at line 79 of file evafriend.h.

Referenced by getFace(), operator=(), parseData(), and setFace().

char FriendItem::gender [private]
 

Definition at line 81 of file evafriend.h.

Referenced by getGender(), isBoy(), operator=(), parseData(), and setGender().

long FriendItem::idleTime [private]
 

Definition at line 87 of file evafriend.h.

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

long FriendItem::lastRefreshTime [private]
 

Definition at line 88 of file evafriend.h.

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

long FriendItem::loginTime [private]
 

Definition at line 86 of file evafriend.h.

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

std::string FriendItem::m_QunRealName [private]
 

Definition at line 93 of file evafriend.h.

Referenced by getQunRealName(), operator=(), and setQunRealName().

int FriendItem::m_QunRealNameVersion [private]
 

Definition at line 92 of file evafriend.h.

Referenced by getQunRealNameVersion(), and setQunRealNameVersion().

bool FriendItem::mIsOnline [private]
 

Definition at line 95 of file evafriend.h.

Referenced by isOnline(), operator=(), and setOnline().

std::string FriendItem::nick [private]
 

Definition at line 82 of file evafriend.h.

Referenced by getNick(), operator=(), parseData(), and setNick().

int FriendItem::qqNum [private]
 

Definition at line 78 of file evafriend.h.

Referenced by getQQ(), operator=(), parseData(), and setQQ().

unsigned char FriendItem::qunAdminValue [private]
 

Definition at line 91 of file evafriend.h.

Referenced by FriendItem(), getQunAdminValue(), isAdmin(), isShareHolder(), operator=(), and setQunAdminValue().

unsigned char FriendItem::qunGroupIndex [private]
 

Definition at line 90 of file evafriend.h.

Referenced by FriendItem(), getQunGroupIndex(), operator=(), and setQunGroupIndex().


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