Fawkes API
Fawkes Development Version
|
Webview page header. More...
#include "header_generator.h"
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. |
Webview page header.
Custom page header that shows the logo and a navigation bar.
WebviewHeaderGenerator::WebviewHeaderGenerator | ( | ) |
Constructor.
Definition at line 49 of file header_generator.cpp.
void WebviewHeaderGenerator::add_nav_entry | ( | std::string | baseurl, |
std::string | name | ||
) |
Add navigation entry.
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.
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. |
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.
baseurl | baseurl whose config entry to remove |
Definition at line 67 of file header_generator.cpp.