2
0

DlgWebPage.h 2.0 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/DlgWebPage.h $
  22. *
  23. * DESCRIPTION
  24. * Web Browser dialog
  25. *
  26. * PROGRAMMER
  27. * Denzil E. Long, Jr.
  28. * $Author: Denzil_l $
  29. *
  30. * VERSION INFO
  31. * $Revision: 4 $
  32. * $Modtime: 10/30/01 4:35p $
  33. *
  34. ******************************************************************************/
  35. #ifndef __DLGWEBPAGE_H__
  36. #define __DLGWEBPAGE_H__
  37. #include "DialogBase.h"
  38. #include <atlbase.h>
  39. #include <WWLib\Notify.h>
  40. class WebBrowser;
  41. class WebEvent;
  42. class DlgMsgBoxEvent;
  43. class DlgWebPage :
  44. public DialogBaseClass,
  45. public Observer<WebEvent>,
  46. public Observer<DlgMsgBoxEvent>
  47. {
  48. public:
  49. static void DoDialog(char* page);
  50. protected:
  51. DlgWebPage();
  52. virtual ~DlgWebPage();
  53. bool FinalizeCreate(void);
  54. // Handle web browser events
  55. void HandleNotification(WebEvent& event);
  56. // Handle message box dialog events
  57. void HandleNotification(DlgMsgBoxEvent& event);
  58. // DialogBassClass methods
  59. protected:
  60. void Start_Dialog(void);
  61. void End_Dialog(void);
  62. void On_Frame_Update(void);
  63. private:
  64. // Declare private to prevent copy and assignment
  65. DlgWebPage(const DlgWebPage&);
  66. const DlgWebPage& operator=(const DlgWebPage&);
  67. private:
  68. WebBrowser* mBrowser;
  69. char* mPage;
  70. unsigned long mTimer;
  71. };
  72. #endif // __DLGWEBPAGE_H__