+ /**
+ * @brief Enumeration for indicating error code of page loading.
+ */
+ enum class LoadErrorCode
+ {
+ /**
+ * @brief Unknown.
+ */
+ UNKNOWN = 0,
+
+ /**
+ * @brief User canceled.
+ */
+ CANCELED,
+
+ /**
+ * @brief Can't show the page for this MIME type.
+ */
+ CANT_SUPPORT_MIMETYPE,
+
+ /**
+ * @brief File IO error.
+ */
+ FAILED_FILE_IO,
+
+ /**
+ * @brief Cannot connect to the network.
+ */
+ CANT_CONNECT,
+
+ /**
+ * @brief Fail to look up host from the DNS.
+ */
+ CANT_LOOKUP_HOST,
+
+ /**
+ * @brief Fail to SSL/TLS handshake.
+ */
+ FAILED_TLS_HANDSHAKE,
+
+ /**
+ * @brief Received certificate is invalid.
+ */
+ INVALID_CERTIFICATE,
+
+ /**
+ * @brief Connection timeout.
+ */
+ REQUEST_TIMEOUT,
+
+ /**
+ * @brief Too many redirects.
+ */
+ TOO_MANY_REDIRECTS,
+
+ /**
+ * @brief Too many requests during this load.
+ */
+ TOO_MANY_REQUESTS,
+
+ /**
+ * @brief Malformed URL.
+ */
+ BAD_URL,
+
+ /**
+ * @brief Unsupported scheme.
+ */
+ UNSUPPORTED_SCHEME,
+
+ /**
+ * @brief User authentication failed on the server.
+ */
+ AUTHENTICATION,
+
+ /**
+ * @brief Web server has an internal server error.
+ */
+ INTERNAL_SERVER
+ };
+
+ /**
+ * @brief WebView signal type related with page loading.
+ */
+ typedef Signal< void ( WebView, const std::string& ) > WebViewPageLoadSignalType;
+
+ /**
+ * @brief WebView signal type related with page loading error.
+ */
+ typedef Signal< void ( WebView, const std::string&, LoadErrorCode ) > WebViewPageLoadErrorSignalType;