Molybden API
Loading...
Searching...
No Matches
navigation_events.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_NAVIGATION_EVENTS_HPP
6#define MOLYBDEN_NAVIGATION_EVENTS_HPP
7
8#include <memory>
9#include <string>
10
11#include "molybden/base/event.hpp"
12#include "molybden/network/network.hpp"
13
14namespace molybden {
15
16class Frame;
17
25 std::shared_ptr<Navigation> navigation;
26
30 std::string url;
31
37
42};
43
51 std::shared_ptr<Navigation> navigation;
52
56 std::shared_ptr<Frame> frame;
57
61 std::string url;
62
68
74
79
84
89
94
98 NetError net_error;
99};
100
108 std::shared_ptr<Navigation> navigation;
109
113 std::string destination_url;
114};
115
123 std::shared_ptr<Navigation> navigation;
124};
125
133 std::shared_ptr<Navigation> navigation;
134
139 double progress = 0;
140};
141
149 std::shared_ptr<Navigation> navigation;
150
154 std::shared_ptr<Frame> frame;
155
159 std::string url;
160
164 NetError error;
165};
166
174 std::shared_ptr<Navigation> navigation;
175
179 std::shared_ptr<Frame> frame;
180
184 std::string url;
185};
186
194 std::shared_ptr<Navigation> navigation;
195
199 std::shared_ptr<Frame> frame;
200};
201
209 std::shared_ptr<Navigation> navigation;
210};
211
219 std::shared_ptr<Navigation> navigation;
220};
221
359
360} // namespace molybden
361
362#endif // MOLYBDEN_NAVIGATION_EVENTS_HPP
Events allow you to be notified when something happens in Molybden.
Definition event.hpp:25
A class that contains all navigation events.
Definition navigation_events.hpp:225
Event< FrameLoadFinished > onFrameLoadFinished
Invoked when the frame load has been finished.
Definition navigation_events.hpp:315
Event< LoadFinished > onLoadFinished
Invoked when the load has been finished.
Definition navigation_events.hpp:357
Event< FrameLoadFailed > onFrameLoadFailed
Invoked when the frame load has been failed.
Definition navigation_events.hpp:304
Event< LoadProgressChanged > onLoadProgressChanged
Invoked when the web page loading progress has been changed.
Definition navigation_events.hpp:293
Event< FrameDocumentLoadFinished > onFrameDocumentLoadFinished
Invoked when the frame document load has been finished.
Definition navigation_events.hpp:329
Event< NavigationStarted > onNavigationStarted
Invoked when a navigation has been started.
Definition navigation_events.hpp:246
Event< NavigationRedirected > onNavigationRedirected
Invoked when a navigation has encountered a server redirect.
Definition navigation_events.hpp:271
Event< LoadStarted > onLoadStarted
Invoked when the load has been started.
Definition navigation_events.hpp:343
Event< NavigationFinished > onNavigationFinished
Invoked when a navigation has been finished.
Definition navigation_events.hpp:260
Event< NavigationStopped > onNavigationStopped
Invoked when a navigation has been stopped.
Definition navigation_events.hpp:282
The NavigationEvents::onFrameDocumentLoadFinished event arguments.
Definition navigation_events.hpp:190
std::shared_ptr< Frame > frame
The frame instance that has been loaded.
Definition navigation_events.hpp:199
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:194
The NavigationEvents::onFrameLoadFailed event arguments.
Definition navigation_events.hpp:145
std::shared_ptr< Frame > frame
The frame instance that has been failed loading.
Definition navigation_events.hpp:154
NetError error
The error explaining why the frame failed to load.
Definition navigation_events.hpp:164
std::string url
The URL of the resource to load.
Definition navigation_events.hpp:159
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:149
The NavigationEvents::onFrameLoadFinished event arguments.
Definition navigation_events.hpp:170
std::string url
The URL of the resource to load.
Definition navigation_events.hpp:184
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:174
std::shared_ptr< Frame > frame
The frame instance that has been loaded.
Definition navigation_events.hpp:179
The NavigationEvents::onLoadFinished event arguments.
Definition navigation_events.hpp:215
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:219
The NavigationEvents::onLoadProgressChanged event arguments.
Definition navigation_events.hpp:129
double progress
Load progress value between 0.0 (nothing loaded) to 1.0 (page fully loaded).
Definition navigation_events.hpp:139
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:133
The NavigationEvents::onLoadStarted event arguments.
Definition navigation_events.hpp:205
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:209
The NavigationEvents::onNavigationFinished event arguments.
Definition navigation_events.hpp:47
NetError net_error
The navigation error in case the navigation has failed.
Definition navigation_events.hpp:98
bool has_committed
Indicates if the navigation has committed.
Definition navigation_events.hpp:83
bool is_server_redirect
Indicates if the navigation has encountered a server redirect.
Definition navigation_events.hpp:78
bool is_same_document
Indicates if the navigation will be performed in the scope of the same document.
Definition navigation_events.hpp:67
std::string url
The URL of the navigation.
Definition navigation_events.hpp:61
bool is_fragment_navigation
Indicates if the navigation has been performed to a fragment within the same document.
Definition navigation_events.hpp:73
std::shared_ptr< Frame > frame
The frame in which this navigation is taking place.
Definition navigation_events.hpp:56
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:51
bool is_error_page
Indicates if the navigation resulted in an error page.
Definition navigation_events.hpp:88
bool is_in_main_frame
Indicates if the navigation is taking place in the main frame.
Definition navigation_events.hpp:93
The NavigationEvents::onNavigationRedirected event arguments.
Definition navigation_events.hpp:104
std::string destination_url
The destination URL for the navigation redirect.
Definition navigation_events.hpp:113
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:108
The NavigationEvents::onNavigationStarted event arguments.
Definition navigation_events.hpp:21
std::string url
The URL of the navigation.
Definition navigation_events.hpp:30
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:25
bool is_same_document
Indicates if the navigation will be performed in the scope of the same document.
Definition navigation_events.hpp:36
bool is_in_main_frame
Indicates if the navigation is taking place in the main frame.
Definition navigation_events.hpp:41
The NavigationEvents::onNavigationStopped event arguments.
Definition navigation_events.hpp:119
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:123