#include <NaviEventListener.h>
Public Member Functions | |
| virtual void | onNaviDataEvent (Navi *caller, const NaviData &naviData)=0 |
| virtual void | onNavigateBegin (Navi *caller, const std::string &url, bool &shouldContinue)=0 |
| virtual void | onLocationChange (Navi *caller, const std::string &url)=0 |
| virtual void | onNavigateComplete (Navi *caller, const std::string &url, int responseCode)=0 |
| virtual void NaviLibrary::NaviEventListener::onNavigateBegin | ( | Navi * | caller, | |
| const std::string & | url, | |||
| bool & | shouldContinue | |||
| ) | [pure virtual] |
This is invoked when a Navi begins to navigate to a certain URL. You may stop or redirect the load by setting "shouldContinue" to false.
| caller | The Navi that invoked this event. | |
| url | The URL (Web Address) that the browser is about to navigate to. | |
| shouldContinue | Set this out parameter to false if you wish to abort the navigation. |
| virtual void NaviLibrary::NaviEventListener::onLocationChange | ( | Navi * | caller, | |
| const std::string & | url | |||
| ) | [pure virtual] |
| virtual void NaviLibrary::NaviEventListener::onNavigateComplete | ( | Navi * | caller, | |
| const std::string & | url, | |||
| int | responseCode | |||
| ) | [pure virtual] |
This is invoked when the internal browser of a Navi completes navigation to a location.
| caller | The Navi that invoked this event. | |
| uri | The URL (Web Address) that the browser has finished navigating to. | |
| responseCode | The response code given by the server (for local pages, this will always be 0). |
1.5.3