DlgQuickmatch.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * NAME
  21. * $Archive: /Commando/Code/Commando/DlgQuickmatch.h $
  22. *
  23. * DESCRIPTION
  24. * Quick match dialog
  25. *
  26. * PROGRAMMER
  27. * Denzil E. Long, Jr.
  28. * $Author: Denzil_l $
  29. *
  30. * VERSION INFO
  31. * $Revision: 8 $
  32. * $Modtime: 8/23/01 8:30a $
  33. *
  34. ******************************************************************************/
  35. #ifndef __DLGQUICKMATCH_H__
  36. #define __DLGQUICKMATCH_H__
  37. #include "WOLQuickMatch.h"
  38. #include <WWUI\MenuDialog.h>
  39. #include <WWLib\Notify.h>
  40. #include <WWOnline\RefPtr.h>
  41. class WaitCondition;
  42. class DlgMsgBoxEvent;
  43. class DlgQuickMatch :
  44. public MenuDialogClass,
  45. public Observer<QuickMatchEvent>,
  46. public Observer<DlgMsgBoxEvent>
  47. {
  48. public:
  49. static bool DoDialog(void);
  50. protected:
  51. DlgQuickMatch();
  52. virtual ~DlgQuickMatch();
  53. bool FinalizeCreate(void);
  54. void On_Init_Dialog(void);
  55. void On_Frame_Update(void);
  56. void On_Command(int ctrl, int message, DWORD param);
  57. void Connect(void);
  58. void SendMatchingInfo(void);
  59. void OutputMessage(int messageID);
  60. void OutputMessage(const WCHAR* message);
  61. void HandleNotification(QuickMatchEvent&);
  62. void HandleNotification(DlgMsgBoxEvent&);
  63. private:
  64. DlgQuickMatch(const DlgQuickMatch&);
  65. const DlgQuickMatch& operator=(const DlgQuickMatch&);
  66. WOLQuickMatch* mQuickMatch;
  67. RefPtr<WaitCondition> mConnectWait;
  68. DWORD mTimeoutTime;
  69. DWORD mResendTime;
  70. };
  71. #endif // __DLGQUICKMATCH_H__