DlgWOLSettings.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. * FILE
  21. * $Archive: /Commando/Code/Commando/DlgWOLSettings.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: 14 $
  32. * $Modtime: 1/19/02 2:29p $
  33. *
  34. ******************************************************************************/
  35. #ifndef __DLGWOLSETTINGS_H__
  36. #define __DLGWOLSETTINGS_H__
  37. #include "DlgWOLWait.h"
  38. #include <WWUI\MenuDialog.h>
  39. #include <WWLib\Notify.h>
  40. #include <WWOnline\RefPtr.h>
  41. #include <WWOnline\WOLSession.h>
  42. class LoginProfile;
  43. class DlgWOLSettings :
  44. public MenuDialogClass,
  45. public Observer<DlgWOLWaitEvent>
  46. {
  47. public:
  48. static bool DoDialog(void);
  49. protected:
  50. DlgWOLSettings();
  51. virtual ~DlgWOLSettings();
  52. bool FinalizeCreate(void);
  53. void On_Init_Dialog(void);
  54. void On_Destroy(void);
  55. void On_Command(int ctrl, int message, DWORD param);
  56. bool SaveSettings(void);
  57. void InitPersonaCombo(void);
  58. void ClearPersonaCombo(void);
  59. void DeleteSelectedPersona(void);
  60. void UpdateForPersona(void);
  61. void InitServersCombo(const WWOnline::IRCServerList& servers);
  62. void SetServerCombo(const char* serverName);
  63. void InitSideCombo(void);
  64. void SetSideCombo(int side);
  65. void InitLocaleCombo(void);
  66. void SetLocaleCombo(WOL::Locale locale);
  67. void InitConnectionSpeedCombo(void);
  68. void On_ComboBoxCtrl_Sel_Change(ComboBoxCtrlClass* combo, int ctrl, int oldSel, int newSel);
  69. void HandleNotification(DlgWOLWaitEvent&);
  70. LoginProfile* GetLoginProfile(void);
  71. private:
  72. DlgWOLSettings(const DlgWOLSettings&);
  73. const DlgWOLSettings& operator=(const DlgWOLSettings&);
  74. RefPtr<WWOnline::Session> mWOLSession;
  75. bool DetectingBandwidth;
  76. bool WaitingToExitDialog;
  77. };
  78. #endif // __DLGWOLSETTINGS_H__