Fawkes API
Fawkes Development Version
|
Manage visible navigation entries. More...
#include <>>
Public Types | |
typedef std::map< std::string, std::string > | NavMap |
Navigation map type, mapping URLs to labels. More... | |
Public Member Functions | |
WebNavManager () | |
Constructor. More... | |
~WebNavManager () | |
Destructor. More... | |
void | add_nav_entry (std::string baseurl, std::string name) |
Add a navigation entry. More... | |
void | remove_nav_entry (std::string baseurl) |
Remove a navigation entry. More... | |
const NavMap & | get_nav_entries () const |
Get navigation entries. More... | |
Mutex * | mutex () |
Get mutex for navigation entries. More... | |
Manage visible navigation entries.
This class maintains a map from URLs to names, which are to be added to the page navigation.
Definition at line 36 of file nav_manager.h.
typedef std::map<std::string, std::string> fawkes::WebNavManager::NavMap |
Navigation map type, mapping URLs to labels.
Definition at line 40 of file nav_manager.h.
fawkes::WebNavManager::WebNavManager | ( | ) |
Constructor.
Definition at line 42 of file nav_manager.cpp.
fawkes::WebNavManager::~WebNavManager | ( | ) |
Destructor.
Definition at line 49 of file nav_manager.cpp.
void fawkes::WebNavManager::add_nav_entry | ( | std::string | baseurl, |
std::string | name | ||
) |
Add a navigation entry.
baseurl | URL for the navigation target |
name | name to display to the user |
Exception | thrown if navigation entry already exists |
Definition at line 61 of file nav_manager.cpp.
Referenced by RRDWebThread::init(), ClipsWebviewThread::init(), WebviewPtzCamThread::init(), WebviewThread::init(), and ROSWebviewThread::loop().
|
inline |
|
inline |
Get mutex for navigation entries.
Definition at line 51 of file nav_manager.h.
void fawkes::WebNavManager::remove_nav_entry | ( | std::string | baseurl | ) |
Remove a navigation entry.
baseurl | URL for which to remove the navigation entry. |
Definition at line 76 of file nav_manager.cpp.
Referenced by RRDWebThread::finalize(), ClipsWebviewThread::finalize(), WebviewPtzCamThread::finalize(), ROSWebviewThread::finalize(), WebviewThread::finalize(), and ROSWebviewThread::loop().