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

Qun Class Reference

#include <evaqunlist.h>

Collaboration diagram for Qun:

Collaboration graph
[legend]
List of all members.

Public Types

enum  MessageType {
  Notify, Popup, Numbers, RecordOnly,
  Reject
}

Public Member Functions

 Qun (const int id)
Qunoperator= (const Qun &rhs)
const int getQunID () const
const QunInfogetDetails () const
const std::list< FriendItem > & getMembers () const
const FriendItemgetMemberDetails (const int qqNum)
void setDetails (const QunInfo &info)
void setMember (const FriendItem &fi)
void setMembers (const std::list< FriendItem > &list)
void updateOnlineMembers (const std::list< int > &list)
void setQQList (const std::list< int > &list)
const std::list< int > getQQList () const
void setMemberArgs (const std::map< int, QunMember > &list)
const bool isAdmin (const int id)
const int numMembers () const
void setCardName (const std::string n)
void setCardGender (const unsigned char g)
void setCardPhone (const std::string p)
void setCardEmail (const std::string e)
void setCardMemo (const std::string m)
const std::string & getCardName () const
const unsigned char & getCardGender () const
const std::string & getCardPhone () const
const std::string & getCardEmail () const
const std::string & getCardMemo () const
void setMessageType (const MessageType type)
const MessageType getMessageType () const
const std::list< TmpQun > & getTmpQunList () const
void addTmpQun (const TmpQun &q)
const bool hasTmpQun () const
const bool hasMember (const int id)
void setRealNamesVersion (const int v)
const int getRealNamesVersion () const
const int getChatFontSize () const
const int getChatFontColor () const
const int getChatFontRed () const
const int getChatFontGreen () const
const int getChatFontBlue () const
void setChatFontSize (const int size)
void setChatFontColor (const int color)
void setChatFontColor (const int red, const int green, const int blue)

Private Attributes

int qunID
QunInfo info
std::list< int > numberList
std::map< int, QunMembermemberArgs
std::list< FriendItemmemberList
std::list< TmpQuntmpQunList
std::string cardName
unsigned char cardGender
std::string cardPhone
std::string cardEmail
std::string cardMemo
int m_RealNamesVersion
MessageType msgType
int m_ChatFontSize
int m_ChatFontColor

Detailed Description

Definition at line 61 of file evaqunlist.h.


Member Enumeration Documentation

enum Qun::MessageType
 

Enumerator:
Notify 
Popup 
Numbers 
RecordOnly 
Reject 

Definition at line 68 of file evaqunlist.h.


Constructor & Destructor Documentation

Qun::Qun const int  id  ) 
 

Definition at line 68 of file evaqunlist.cpp.


Member Function Documentation

void Qun::addTmpQun const TmpQun q  ) 
 

Definition at line 169 of file evaqunlist.cpp.

References tmpQunList.

const std::string& Qun::getCardEmail  )  const [inline]
 

Definition at line 99 of file evaqunlist.h.

References cardEmail.

Referenced by operator=().

const unsigned char& Qun::getCardGender  )  const [inline]
 

Definition at line 97 of file evaqunlist.h.

References cardGender.

Referenced by operator=().

const std::string& Qun::getCardMemo  )  const [inline]
 

Definition at line 100 of file evaqunlist.h.

References cardMemo.

Referenced by operator=().

const std::string& Qun::getCardName  )  const [inline]
 

Definition at line 96 of file evaqunlist.h.

References cardName.

Referenced by operator=().

const std::string& Qun::getCardPhone  )  const [inline]
 

Definition at line 98 of file evaqunlist.h.

References cardPhone.

Referenced by operator=().

const int Qun::getChatFontBlue  )  const [inline]
 

Definition at line 119 of file evaqunlist.h.

References m_ChatFontColor.

const int Qun::getChatFontColor  )  const [inline]
 

Definition at line 116 of file evaqunlist.h.

References m_ChatFontColor.

Referenced by operator=().

const int Qun::getChatFontGreen  )  const [inline]
 

Definition at line 118 of file evaqunlist.h.

References m_ChatFontColor.

const int Qun::getChatFontRed  )  const [inline]
 

Definition at line 117 of file evaqunlist.h.

References m_ChatFontColor.

const int Qun::getChatFontSize  )  const [inline]
 

Definition at line 115 of file evaqunlist.h.

References m_ChatFontSize.

Referenced by operator=().

const QunInfo& Qun::getDetails  )  const [inline]
 

Definition at line 71 of file evaqunlist.h.

References info.

Referenced by operator=().

const FriendItem * Qun::getMemberDetails const int  qqNum  ) 
 

Definition at line 140 of file evaqunlist.cpp.

References memberList.

const std::list<FriendItem>& Qun::getMembers  )  const [inline]
 

Definition at line 72 of file evaqunlist.h.

References memberList.

Referenced by operator=().

const MessageType Qun::getMessageType  )  const [inline]
 

Definition at line 103 of file evaqunlist.h.

References msgType.

const std::list<int> Qun::getQQList  )  const [inline]
 

Definition at line 83 of file evaqunlist.h.

References numberList.

Referenced by operator=().

const int Qun::getQunID  )  const [inline]
 

Definition at line 70 of file evaqunlist.h.

References qunID.

Referenced by QunList::add(), operator=(), and QunList::update().

const int Qun::getRealNamesVersion  )  const [inline]
 

Definition at line 113 of file evaqunlist.h.

References m_RealNamesVersion.

Referenced by operator=().

const std::list<TmpQun>& Qun::getTmpQunList  )  const [inline]
 

Definition at line 105 of file evaqunlist.h.

References tmpQunList.

Referenced by operator=().

const bool Qun::hasMember const int  id  ) 
 

Definition at line 206 of file evaqunlist.cpp.

References memberList.

const bool Qun::hasTmpQun  )  const [inline]
 

Definition at line 108 of file evaqunlist.h.

References tmpQunList.

const bool Qun::isAdmin const int  id  ) 
 

Definition at line 193 of file evaqunlist.cpp.

References memberList, and QUN_TYPE_ADMIN.

const int Qun::numMembers  )  const [inline]
 

Definition at line 88 of file evaqunlist.h.

References memberList.

Qun & Qun::operator= const Qun rhs  ) 
 

Definition at line 74 of file evaqunlist.cpp.

References cardEmail, cardGender, cardMemo, cardName, cardPhone, getCardEmail(), getCardGender(), getCardMemo(), getCardName(), getCardPhone(), getChatFontColor(), getChatFontSize(), getDetails(), getMembers(), getQQList(), getQunID(), getRealNamesVersion(), getTmpQunList(), info, m_ChatFontColor, m_ChatFontSize, m_RealNamesVersion, memberList, numberList, qunID, and tmpQunList.

Here is the call graph for this function:

void Qun::setCardEmail const std::string  e  )  [inline]
 

Definition at line 93 of file evaqunlist.h.

References cardEmail.

void Qun::setCardGender const unsigned char  g  )  [inline]
 

Definition at line 91 of file evaqunlist.h.

References cardGender.

void Qun::setCardMemo const std::string  m  )  [inline]
 

Definition at line 94 of file evaqunlist.h.

References cardMemo.

void Qun::setCardName const std::string  n  )  [inline]
 

Definition at line 90 of file evaqunlist.h.

References cardName.

void Qun::setCardPhone const std::string  p  )  [inline]
 

Definition at line 92 of file evaqunlist.h.

References cardPhone.

void Qun::setChatFontColor const int  red,
const int  green,
const int  blue
[inline]
 

Definition at line 123 of file evaqunlist.h.

References m_ChatFontColor.

void Qun::setChatFontColor const int  color  )  [inline]
 

Definition at line 122 of file evaqunlist.h.

References m_ChatFontColor.

void Qun::setChatFontSize const int  size  )  [inline]
 

Definition at line 121 of file evaqunlist.h.

References m_ChatFontSize.

void Qun::setDetails const QunInfo info  )  [inline]
 

Definition at line 75 of file evaqunlist.h.

void Qun::setMember const FriendItem fi  ) 
 

Definition at line 150 of file evaqunlist.cpp.

References FriendItem::getQQ(), memberArgs, memberList, FriendItem::setQunAdminValue(), and FriendItem::setQunGroupIndex().

Here is the call graph for this function:

void Qun::setMemberArgs const std::map< int, QunMember > &  list  ) 
 

if we clear this list, the real name setting will lost

Definition at line 174 of file evaqunlist.cpp.

References m_RealNamesVersion, memberArgs, and numberList.

void Qun::setMembers const std::list< FriendItem > &  list  ) 
 

Definition at line 94 of file evaqunlist.cpp.

References memberArgs, and memberList.

void Qun::setMessageType const MessageType  type  )  [inline]
 

Definition at line 102 of file evaqunlist.h.

References msgType.

void Qun::setQQList const std::list< int > &  list  )  [inline]
 

Definition at line 82 of file evaqunlist.h.

References numberList.

void Qun::setRealNamesVersion const int  v  )  [inline]
 

Definition at line 112 of file evaqunlist.h.

References m_RealNamesVersion.

void Qun::updateOnlineMembers const std::list< int > &  list  ) 
 

Definition at line 125 of file evaqunlist.cpp.

References memberList.


Member Data Documentation

std::string Qun::cardEmail [private]
 

Definition at line 137 of file evaqunlist.h.

Referenced by getCardEmail(), operator=(), and setCardEmail().

unsigned char Qun::cardGender [private]
 

Definition at line 135 of file evaqunlist.h.

Referenced by getCardGender(), operator=(), and setCardGender().

std::string Qun::cardMemo [private]
 

Definition at line 138 of file evaqunlist.h.

Referenced by getCardMemo(), operator=(), and setCardMemo().

std::string Qun::cardName [private]
 

Definition at line 134 of file evaqunlist.h.

Referenced by getCardName(), operator=(), and setCardName().

std::string Qun::cardPhone [private]
 

Definition at line 136 of file evaqunlist.h.

Referenced by getCardPhone(), operator=(), and setCardPhone().

QunInfo Qun::info [private]
 

Definition at line 127 of file evaqunlist.h.

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

int Qun::m_ChatFontColor [private]
 

Definition at line 145 of file evaqunlist.h.

Referenced by getChatFontBlue(), getChatFontColor(), getChatFontGreen(), getChatFontRed(), operator=(), and setChatFontColor().

int Qun::m_ChatFontSize [private]
 

Definition at line 144 of file evaqunlist.h.

Referenced by getChatFontSize(), operator=(), and setChatFontSize().

int Qun::m_RealNamesVersion [private]
 

Definition at line 140 of file evaqunlist.h.

Referenced by getRealNamesVersion(), operator=(), setMemberArgs(), and setRealNamesVersion().

std::map<int, QunMember> Qun::memberArgs [private]
 

Definition at line 129 of file evaqunlist.h.

Referenced by setMember(), setMemberArgs(), and setMembers().

std::list<FriendItem> Qun::memberList [private]
 

Definition at line 130 of file evaqunlist.h.

Referenced by getMemberDetails(), getMembers(), hasMember(), isAdmin(), numMembers(), operator=(), setMember(), setMembers(), and updateOnlineMembers().

MessageType Qun::msgType [private]
 

Definition at line 142 of file evaqunlist.h.

Referenced by getMessageType(), and setMessageType().

std::list<int> Qun::numberList [private]
 

Definition at line 128 of file evaqunlist.h.

Referenced by getQQList(), operator=(), setMemberArgs(), and setQQList().

int Qun::qunID [private]
 

Definition at line 126 of file evaqunlist.h.

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

std::list<TmpQun> Qun::tmpQunList [private]
 

Definition at line 131 of file evaqunlist.h.

Referenced by addTmpQun(), getTmpQunList(), hasTmpQun(), and operator=().


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