Changeset 6363 for trunk/licq/include/licq_user.h
- Timestamp:
- 07/01/08 02:41:30 (5 months ago)
- Files:
-
- 1 modified
-
trunk/licq/include/licq_user.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/include/licq_user.h
r6362 r6363 234 234 class LicqGroup; 235 235 236 typedef std::pair<std::string, unsigned long> UserMapKey; 237 typedef std::map<UserMapKey, class ICQUser*> UserMap; 236 238 typedef std::list<ICQUser *> UserList; 237 239 typedef std::list<class ICQOwner *> OwnerList; … … 1152 1154 }; 1153 1155 1154 1155 //=====CUsers===================================================================1156 1157 class CUserHashTable1158 {1159 public:1160 CUserHashTable(unsigned short _nSize);1161 ~CUserHashTable();1162 1163 // For protocol plugins1164 ICQUser *Retrieve(const char *, unsigned long);1165 void Store(ICQUser *, const char *, unsigned long);1166 void Remove(const char *, unsigned long);1167 1168 protected:1169 // For protocol plugin1170 unsigned short HashValue(const char *);1171 1172 void Lock(unsigned short _nLockType);1173 void Unlock();1174 1175 std::vector < UserList > m_vlTable;1176 1177 pthread_rdwr_t mutex_rw;1178 unsigned short m_nLockType;1179 };1180 1181 1156 /** 1182 1157 * Class holding data for a user group in the contact list. … … 1512 1487 GroupMap myGroups; 1513 1488 UserList m_vpcUsers; 1489 UserMap myUsers; 1514 1490 OwnerList m_vpcOwners; 1515 CUserHashTable m_hUsers;1516 1491 ICQOwner *m_xOwner; 1517 1492 unsigned long m_nOwnerUin;
