Fawkes API  Fawkes Development Version
fawkes::WebviewAspect Class Reference

Thread aspect to provide web pages via Webview. More...

#include <>>

Inheritance diagram for fawkes::WebviewAspect:

List of all members.

Public Member Functions

 WebviewAspect ()
 Constructor.
virtual ~WebviewAspect ()
 Virtual empty Destructor.
void init_WebviewAspect (WebUrlManager *url_manager, WebNavManager *nav_manager)
 Set URL manager.

Protected Attributes

WebUrlManagerwebview_url_manager
 Webview request processor manager.
WebNavManagerwebview_nav_manager
 Webview navigation manager.

Detailed Description

Thread aspect to provide web pages via Webview.

The WebviewAspect differs from other aspects. It can be successfully initialized even if there currently is no plugin loaded to serve web pages. This is because the central interface, the WebUrlManager, is held by the WebviewAspectIniFin and thus processor can be registerd and deregistered all the time. The webview plugin itself has the WebviewAspect, but it uses its access to the WebUrlManager instance to serve requests and pass them on to the appropriate processor.

It is guaranteed that if used properly from within plugins that init_WebviewAspect() is called before the thread is started and that you can access the webview request processor manager in the thread's init() method.

Author:
Tim Niemueller

Constructor & Destructor Documentation

fawkes::WebviewAspect::WebviewAspect ( )

Constructor.

Definition at line 53 of file webview.cpp.

fawkes::WebviewAspect::~WebviewAspect ( ) [virtual]

Virtual empty Destructor.

Definition at line 60 of file webview.cpp.


Member Function Documentation

void fawkes::WebviewAspect::init_WebviewAspect ( WebUrlManager url_manager,
WebNavManager nav_manager 
)

Set URL manager.

It is guaranteed that this is called for a logging thread before Thread::start() is called (when running regularly inside Fawkes).

Parameters:
url_managerURL manager to register processors to
nav_managerNavigation manager to add navigation entries
See also:
WebviewMaster

Definition at line 73 of file webview.cpp.

Referenced by fawkes::WebviewAspectIniFin::init().


Member Data Documentation


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