Changeset 6419 for trunk/licq/include/licq_chat.h
- Timestamp:
- 07/04/08 06:16:26 (5 months ago)
- Files:
-
- 1 modified
-
trunk/licq/include/licq_chat.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/include/licq_chat.h
r6405 r6419 2 2 #define CHAT_H 3 3 4 #include <cstdlib> 4 5 #include <deque> 5 6 #include <list> … … 8 9 #include "licq_socket.h" 9 10 class CICQDaemon; 11 12 // Define for marking functions as deprecated 13 #ifndef LICQ_DEPRECATED 14 # if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) 15 # define LICQ_DEPRECATED __attribute__ ((__deprecated__)) 16 # elif defined(_MSC_VER) && (_MSC_VER >= 1300) 17 # define LICQ_DEPRECATED __declspec(deprecated) 18 # else 19 # define LICQ_DEPRECATED 20 # endif 21 #endif 10 22 11 23 … … 201 213 // Accessors 202 214 const char *Name() { return m_szName; } 203 unsigned long Uin() { return m_nUin; }204 215 char *Id() { return m_szId; } 205 216 unsigned long PPID() { return m_nPPID; } … … 214 225 virtual ~CPChat_Color(); 215 226 216 protected: 217 unsigned long m_nUin; 227 // Deprecated functions, to be removed 228 LICQ_DEPRECATED unsigned long Uin() { return strtoul(m_szId, NULL, 10); } 229 230 protected: 218 231 char *m_szId; 219 232 unsigned long m_nPPID; … … 250 263 unsigned long m_nVersion; 251 264 unsigned short m_nPort; 252 unsigned long m_nUin;253 265 char *m_szId; 254 266 unsigned long m_nPPID; … … 292 304 // Accessors 293 305 const char *Name() { return m_szName; } 294 unsigned long Uin() { return m_nUin; }295 306 char *Id() { return m_szId; } 296 307 unsigned long PPID() { return m_nPPID; } … … 314 325 ChatClientList &ChatClients() { return chatClients; } 315 326 316 protected: 317 unsigned long m_nUin; 327 // Deprecated functions, to be removed 328 LICQ_DEPRECATED unsigned long Uin() { return strtoul(m_szId, NULL, 10); } 329 330 protected: 318 331 char *m_szId; 319 332 unsigned long m_nPPID; … … 475 488 { 476 489 public: 477 unsigned long Uin() { return uin; }478 490 char *Id() { return szId; } 479 491 unsigned long PPID() { return nPPID; } … … 495 507 ~CChatUser(); 496 508 509 // Deprecated functions, to be removed 510 LICQ_DEPRECATED unsigned long Uin() { return strtoul(szId, NULL, 10); } 511 497 512 protected: 498 513 CChatUser(); 499 514 500 unsigned long uin;501 515 char *szId; 502 516 unsigned long nPPID; … … 621 635 CICQDaemon *licqDaemon; 622 636 int pipe_events[2], pipe_thread[2]; 623 unsigned long m_nUin;624 637 char *m_szId; 625 638 unsigned long m_nPPID;
