icqwindow.h
上传用户:zslianheng
上传日期:2013-04-03
资源大小:946k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Visual C++

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *   This program is free software; you can redistribute it and/or modify  *
  4.  *   it under the terms of the GNU General Public License as published by  *
  5.  *   the Free Software Foundation; either version 2 of the License, or     *
  6.  *   (at your option) any later version.                                   *
  7.  *                                                                         *
  8.  *   copyright            : (C) 2002 by Zhang Yong                         *
  9.  *   email                : z-yong163@163.com                              *
  10.  ***************************************************************************/
  11. #ifndef _ICQ_WINDOW_H
  12. #define _ICQ_WINDOW_H
  13. #include "icqtypes.h"
  14. enum {
  15. WIN_SEND_MESSAGE,
  16. WIN_SEND_REQUEST,
  17. WIN_VIEW_DETAIL,
  18. WIN_MODIFY_DETAIL,
  19. WIN_SEARCH_WIZARD,
  20. WIN_REG_WIZARD,
  21. WIN_SYS_MESSAGE,
  22. WIN_VIEW_MESSAGE,
  23. WIN_SYS_HISTORY,
  24. WIN_ADD_FRIEND,
  25. WIN_DEL_FRIEND,
  26. WIN_BROADCAST_MSG,
  27. };
  28. class IcqWindow {
  29. public:
  30. IcqWindow(int type, uint32 uin = 0);
  31. virtual ~IcqWindow();
  32. virtual bool isSeq(uint32 seq) {
  33. return (this->seq == seq);
  34. }
  35. virtual void onAck(uint32 seq) {}
  36. virtual void onSendError(uint32 seq) {}
  37. int type;
  38. uint32 uin;
  39. uint32 seq;
  40. };
  41. #endif