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

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. #if !defined(AFX_REGWIZARD_H__99372F33_BF23_49A6_BA55_6DC376D7397D__INCLUDED_)
  12. #define AFX_REGWIZARD_H__99372F33_BF23_49A6_BA55_6DC376D7397D__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // RegWizard.h : header file
  17. //
  18. #include "icqwindow.h"
  19. #include "RegModeDlg.h"
  20. #include "RegBasicDlg.h"
  21. #include "RegCommDlg.h"
  22. #include "RegMiscDlg.h"
  23. #include "RegNetworkDlg.h"
  24. #include "RegFinishDlg.h"
  25. class IcqUser;
  26. class IcqOption;
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CRegWizard
  29. class CRegWizard : public CPropertySheet, public IcqWindow
  30. {
  31. DECLARE_DYNAMIC(CRegWizard)
  32. // Construction
  33. public:
  34. CRegWizard();
  35. void onHostFound(in_addr &addr) {
  36. finishDlg.onHostFound(addr);
  37. }
  38. void onConnect(bool success) {
  39. finishDlg.onConnect(success);
  40. }
  41. void onLoginReply(uint16 error) {
  42. finishDlg.onLoginReply(error);
  43. }
  44. void onNewUINReply(uint32 uin) {
  45. finishDlg.onNewUINReply(uin);
  46. }
  47. void onContactListReply() {
  48. finishDlg.onContactListReply();
  49. }
  50. void onSendError(uint32 seq) {
  51. finishDlg.onSendError(seq);
  52. }
  53. // Attributes
  54. public:
  55. BOOL isFinished;
  56. CRegModeDlg modeDlg;
  57. CRegBasicDlg basicDlg;
  58. CRegCommDlg commDlg;
  59. CRegMiscDlg miscDlg;
  60. CRegNetworkDlg networkDlg;
  61. CRegFinishDlg finishDlg;
  62. // Operations
  63. public:
  64. void getData(IcqUser *info, IcqOption *options = NULL);
  65. // Overrides
  66. // ClassWizard generated virtual function overrides
  67. //{{AFX_VIRTUAL(CRegWizard)
  68. //}}AFX_VIRTUAL
  69. // Implementation
  70. public:
  71. virtual ~CRegWizard();
  72. // Generated message map functions
  73. protected:
  74. //{{AFX_MSG(CRegWizard)
  75. // NOTE - the ClassWizard will add and remove member functions here.
  76. //}}AFX_MSG
  77. DECLARE_MESSAGE_MAP()
  78. };
  79. /////////////////////////////////////////////////////////////////////////////
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_REGWIZARD_H__99372F33_BF23_49A6_BA55_6DC376D7397D__INCLUDED_)