Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WebBrowser Class Referenceabstract

#include <WebBrowser.h>

Inherits FEBDispatch< WebBrowser, IBrowserDispatch, &IID_IBrowserDispatch >, and SubsystemInterface.

Inherited by W3DWebBrowser.

Public Member Functions

void init (void)
 
void reset (void)
 
void update (void)
 
virtual Bool createBrowserWindow (char *tag, GameWindow *win)=0
 
virtual void closeBrowserWindow (GameWindow *win)=0
 
WebBrowserURLmakeNewURL (AsciiString tag)
 
WebBrowserURLfindURL (AsciiString tag)
 
STDMETHOD TestMethod (Int num1)
 
- Public Member Functions inherited from FEBDispatch< WebBrowser, IBrowserDispatch, &IID_IBrowserDispatch >
 FEBDispatch ()
 
virtual ~FEBDispatch ()
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Protected Member Functions

 WebBrowser ()
 
virtual ~WebBrowser ()
 
 WebBrowser (const WebBrowser &)
 
const WebBrowseroperator= (const WebBrowser &)
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
 
ULONG STDMETHODCALLTYPE AddRef (void)
 
ULONG STDMETHODCALLTYPE Release (void)
 

Protected Attributes

ULONG mRefCount
 
WebBrowserURLm_urlList
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Additional Inherited Members

- Public Attributes inherited from FEBDispatch< WebBrowser, IBrowserDispatch, &IID_IBrowserDispatch >
IUnknown * m_dispatch
 

Detailed Description

Definition at line 79 of file WebBrowser.h.

Constructor & Destructor Documentation

◆ WebBrowser() [1/2]

WebBrowser::WebBrowser ( )
protected

Definition at line 94 of file WebBrowser.cpp.

◆ ~WebBrowser()

WebBrowser::~WebBrowser ( )
protectedvirtual

Definition at line 118 of file WebBrowser.cpp.

◆ WebBrowser() [2/2]

WebBrowser::WebBrowser ( const WebBrowser & )
protected

Member Function Documentation

◆ AddRef()

ULONG STDMETHODCALLTYPE WebBrowser::AddRef ( void )
protected

Definition at line 273 of file WebBrowser.cpp.

◆ closeBrowserWindow()

virtual void WebBrowser::closeBrowserWindow ( GameWindow * win)
pure virtual

Implemented in W3DWebBrowser.

◆ createBrowserWindow()

virtual Bool WebBrowser::createBrowserWindow ( char * tag,
GameWindow * win )
pure virtual

Implemented in W3DWebBrowser.

◆ findURL()

WebBrowserURL * WebBrowser::findURL ( AsciiString tag)

Definition at line 202 of file WebBrowser.cpp.

◆ init()

void WebBrowser::init ( void )
virtual
  • Assign any default values to data required for the class
    • Allocate any memory and resources needed throughout the lifetime of the class

Implements SubsystemInterface.

Definition at line 171 of file WebBrowser.cpp.

◆ makeNewURL()

WebBrowserURL * WebBrowser::makeNewURL ( AsciiString tag)

Definition at line 214 of file WebBrowser.cpp.

◆ operator=()

const WebBrowser & WebBrowser::operator= ( const WebBrowser & )
protected

◆ QueryInterface()

STDMETHODIMP WebBrowser::QueryInterface ( REFIID riid,
void ** ppvObject )
protected

Definition at line 240 of file WebBrowser.cpp.

◆ Release()

ULONG STDMETHODCALLTYPE WebBrowser::Release ( void )
protected

Definition at line 293 of file WebBrowser.cpp.

◆ reset()

void WebBrowser::reset ( void )
virtual
  • Any system should be able to reset all data and go back to an empty state that is ready to accept a completely new set of data. Reset() can expect to be used in the context of resetting the engine in order to start or load a new game.
    • Do NOT free and re-allocate resources needed, where possible reorganize and re-initialize the resources already allocated.
    • After a reset, the system does not need to be in EXACTLY the same state as a fresh instantiation. If there are persistent state information for the system make sure you maintain it while restoring or re-initializing other transient parts.

Implements SubsystemInterface.

Definition at line 194 of file WebBrowser.cpp.

◆ TestMethod()

STDMETHODIMP WebBrowser::TestMethod ( Int num1)

Definition at line 311 of file WebBrowser.cpp.

◆ update()

void WebBrowser::update ( void )
virtual
  • Update methods are the place to do system per frame processing. You should call the system update once each time through the game loop to service the system.
    • Note that currently the GameClient and GameLogic will be updating at different rates where the logic is running real time, and the client will adjust how many loops can be done during one server time slice in order to improve performance on low end machines.

Implements SubsystemInterface.

Definition at line 198 of file WebBrowser.cpp.

Member Data Documentation

◆ m_urlList

WebBrowserURL* WebBrowser::m_urlList
protected

Definition at line 109 of file WebBrowser.h.

◆ mRefCount

ULONG WebBrowser::mRefCount
protected

Definition at line 108 of file WebBrowser.h.


The documentation for this class was generated from the following files: