WebviewHeaderGenerator Class Reference

Webview page header. More...

#include <header_generator.h>

Inheritance diagram for WebviewHeaderGenerator:

[legend]
List of all members.

Public Member Functions

 WebviewHeaderGenerator ()
 Constructor.
std::string html_header (std::string &title, std::string &active_baseurl)
 Generate HTML header.
void add_nav_entry (std::string baseurl, std::string name)
 Add navigation entry.
void remove_nav_entry (std::string baseurl)
 Remove navigation entry.

Detailed Description

Webview page header.

Custom page header that shows the logo and a navigation bar.

Author:
Tim Niemueller

Definition at line 31 of file header_generator.h.


Constructor & Destructor Documentation

WebviewHeaderGenerator::WebviewHeaderGenerator (  ) 

Constructor.

Definition at line 49 of file header_generator.cpp.


Member Function Documentation

void WebviewHeaderGenerator::add_nav_entry ( std::string  baseurl,
std::string  name 
)

Add navigation entry.

Parameters:
baseurl baseurl that should be linked for this entry
name string to print as link name

Definition at line 58 of file header_generator.cpp.

Referenced by WebviewThread::init().

std::string WebviewHeaderGenerator::html_header ( std::string &  title,
std::string &  active_baseurl 
) [virtual]

Generate HTML header.

Parameters:
title HTML title, must be put in <title> tag in <head> section
active_baseurl the baseurl currently active processor (this is the baseurl a processor is registered for). This can be used for example to highlight the current section in the navigation.
Returns:
header HTML code

Implements fawkes::WebPageHeaderGenerator.

Definition at line 73 of file header_generator.cpp.

References fawkes::HostInfo::short_name().

void WebviewHeaderGenerator::remove_nav_entry ( std::string  baseurl  ) 

Remove navigation entry.

Parameters:
baseurl baseurl whose config entry to remove

Definition at line 67 of file header_generator.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:38 2011 for Fawkes API by  doxygen 1.4.7