|
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. | |
Public Member Functions | |
| WebNavManager () | |
| Constructor. | |
| ~WebNavManager () | |
| Destructor. | |
| void | add_nav_entry (std::string baseurl, std::string name) |
| Add a navigation entry. | |
| void | remove_nav_entry (std::string baseurl) |
| Remove a navigation entry. | |
| const NavMap & | get_nav_entries () const |
| Get navigation entries. | |
| Mutex * | mutex () |
| Get mutex for navigation entries. | |
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(), and WebviewThread::init().
|
inline |
Get navigation entries.
Definition at line 49 of file nav_manager.h.
|
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(), ROSWebviewThread::finalize(), and WebviewThread::finalize().