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

FriendList Class Reference

#include <evafriendlist.h>

List of all members.

Public Member Functions

 FriendList ()
 ~FriendList ()
const bool hasFriend (const int id)
QQFriendgetFriend (const int id)
bool deleteFriend (const int id)
void addFriend (const QQFriend &frd)
void updateFriend (const QQFriend &frd)
void clearFriendList ()
bool updateFriendIP (const int id, const int ip)
bool updateFriendPort (const int id, const short p)
bool updateFriendFace (const int id, const short face)
bool updateFriendStatus (const int id, const char status)
bool updateFriendFileSessionKey (const int id, const unsigned char *key)
bool updateFriendGroupIndex (const int id, const int index)
bool updateFriendLevel (const int id, const unsigned int online, const unsigned short level, const unsigned short hours)
bool addFriendItemTo (const int id, const FriendItem &item)
bool addOnlineFriendEntryTo (const int id, const FriendOnlineEntry &entry)
bool addContactInfoTo (const int id, const ContactInfo &info)
const int numberOfFriends () const
const int numberOfOnlines ()
std::list< QQFriendgetFriendsInGroupIndexOf (const int index)
std::list< QQFriendgetAllFriends (const int myId=0)
std::map< int, QQFriendgetAllFriendsMap ()
const std::map< int, QQFriend > & getFriendList () const
bool setExtraInfo (const int id, const short info)
bool setSignature (const int id, const std::string sig, const unsigned int time)
const std::map< int, int > getMemberSignatureList (const int start, const int myId, const bool hasSignature)
const std::list< int > getUserHeadList (const int myId, const bool hasUserHead)
bool setMemo (const int id, const MemoItem &memo)
FriendListoperator= (const FriendList &rhs)

Private Member Functions

std::map< int, QQFriend
>::iterator 
getFriendPosition (const int id)

Private Attributes

std::map< int, QQFriendprivateList


Detailed Description

Definition at line 194 of file evafriendlist.h.


Constructor & Destructor Documentation

FriendList::FriendList  )  [inline]
 

Definition at line 196 of file evafriendlist.h.

FriendList::~FriendList  )  [inline]
 

Definition at line 197 of file evafriendlist.h.

References privateList.


Member Function Documentation

bool FriendList::addContactInfoTo const int  id,
const ContactInfo info
 

Definition at line 353 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

void FriendList::addFriend const QQFriend frd  ) 
 

Definition at line 253 of file evafriendlist.cpp.

References getFriendPosition(), QQFriend::getGroupIndex(), QQFriend::getQQ(), and privateList.

Referenced by updateFriend().

Here is the call graph for this function:

bool FriendList::addFriendItemTo const int  id,
const FriendItem item
 

Definition at line 335 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::addOnlineFriendEntryTo const int  id,
const FriendOnlineEntry entry
 

Definition at line 344 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

void FriendList::clearFriendList  )  [inline]
 

Definition at line 203 of file evafriendlist.h.

References privateList.

bool FriendList::deleteFriend const int  id  ) 
 

Definition at line 245 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Referenced by updateFriend().

Here is the call graph for this function:

std::list< QQFriend > FriendList::getAllFriends const int  myId = 0  ) 
 

Definition at line 393 of file evafriendlist.cpp.

References QQFriend::getSortField(), privateList, QQFriend::setSortField(), and QQFriend::Sort_QQ.

Referenced by getMemberSignatureList(), and getUserHeadList().

Here is the call graph for this function:

std::map<int, QQFriend> FriendList::getAllFriendsMap  )  [inline]
 

Definition at line 222 of file evafriendlist.h.

References privateList.

QQFriend * FriendList::getFriend const int  id  ) 
 

Definition at line 237 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

const std::map<int, QQFriend>& FriendList::getFriendList  )  const [inline]
 

Definition at line 224 of file evafriendlist.h.

References privateList.

Referenced by operator=().

std::map< int, QQFriend >::iterator FriendList::getFriendPosition const int  id  )  [private]
 

Definition at line 409 of file evafriendlist.cpp.

References privateList.

Referenced by addContactInfoTo(), addFriend(), addFriendItemTo(), addOnlineFriendEntryTo(), deleteFriend(), getFriend(), hasFriend(), setExtraInfo(), setMemo(), setSignature(), updateFriendFace(), updateFriendFileSessionKey(), updateFriendGroupIndex(), updateFriendIP(), updateFriendLevel(), updateFriendPort(), and updateFriendStatus().

std::list< QQFriend > FriendList::getFriendsInGroupIndexOf const int  index  ) 
 

Definition at line 382 of file evafriendlist.cpp.

References privateList.

const std::map< int, int > FriendList::getMemberSignatureList const int  start,
const int  myId,
const bool  hasSignature
 

Definition at line 423 of file evafriendlist.cpp.

References getAllFriends().

Here is the call graph for this function:

const std::list< int > FriendList::getUserHeadList const int  myId,
const bool  hasUserHead
 

Definition at line 451 of file evafriendlist.cpp.

References getAllFriends().

Here is the call graph for this function:

const bool FriendList::hasFriend const int  id  ) 
 

Definition at line 228 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

const int FriendList::numberOfFriends  )  const [inline]
 

Definition at line 218 of file evafriendlist.h.

References privateList.

const int FriendList::numberOfOnlines  ) 
 

Definition at line 361 of file evafriendlist.cpp.

References privateList, QQ_FRIEND_STATUS_INVISIBLE, QQ_FRIEND_STATUS_LEAVE, QQ_FRIEND_STATUS_OFFLINE, and QQ_FRIEND_STATUS_ONLINE.

FriendList& FriendList::operator= const FriendList rhs  )  [inline]
 

Definition at line 231 of file evafriendlist.h.

References getFriendList(), and privateList.

Here is the call graph for this function:

bool FriendList::setExtraInfo const int  id,
const short  info
 

Definition at line 414 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::setMemo const int  id,
const MemoItem memo
 

Definition at line 464 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::setSignature const int  id,
const std::string  sig,
const unsigned int  time
 

Definition at line 442 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

void FriendList::updateFriend const QQFriend frd  ) 
 

Definition at line 264 of file evafriendlist.cpp.

References addFriend(), deleteFriend(), and QQFriend::getQQ().

Here is the call graph for this function:

bool FriendList::updateFriendFace const int  id,
const short  face
 

Definition at line 279 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::updateFriendFileSessionKey const int  id,
const unsigned char *  key
 

Definition at line 305 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::updateFriendGroupIndex const int  id,
const int  index
 

Definition at line 314 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::updateFriendIP const int  id,
const int  ip
 

Definition at line 270 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::updateFriendLevel const int  id,
const unsigned int  online,
const unsigned short  level,
const unsigned short  hours
 

Definition at line 323 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::updateFriendPort const int  id,
const short  p
 

Definition at line 288 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:

bool FriendList::updateFriendStatus const int  id,
const char  status
 

Definition at line 297 of file evafriendlist.cpp.

References getFriendPosition(), and privateList.

Here is the call graph for this function:


Member Data Documentation

std::map<int, QQFriend> FriendList::privateList [private]
 

Definition at line 233 of file evafriendlist.h.

Referenced by addContactInfoTo(), addFriend(), addFriendItemTo(), addOnlineFriendEntryTo(), clearFriendList(), deleteFriend(), getAllFriends(), getAllFriendsMap(), getFriend(), getFriendList(), getFriendPosition(), getFriendsInGroupIndexOf(), hasFriend(), numberOfFriends(), numberOfOnlines(), operator=(), setExtraInfo(), setMemo(), setSignature(), updateFriendFace(), updateFriendFileSessionKey(), updateFriendGroupIndex(), updateFriendIP(), updateFriendLevel(), updateFriendPort(), updateFriendStatus(), and ~FriendList().


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