![]() |
![]() |
![]() |
gURLChecker Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define UC_CHECK_PARSER_WHILE_CONDITION #define UC_CHECK_ABORT_IF_CONDITION struct UCCurrentItem; enum UCHTTPCheckReturn; gboolean uc_check_content_type_w3c_accepted (const gchar *type, gchar *path, gchar *content_type); guint32 uc_check_get_main_page_id (void); gboolean uc_check_is_w3c_alert (const UCLinkProperties *prop); void uc_check_run_w3c_checks (UCLinkProperties *prop); void uc_check_run_security_checks (UCLinkProperties *prop); void uc_check_refresh_report (void); void uc_check_set_depth (GList *list, const guint depth); UCLinkProperties * uc_check_copy_node (UCLinkProperties *src, UCLinkProperties *dst); gboolean uc_check_is_main_page (const UCLinkProperties *prop); gchar * uc_check_get_link_type_icon_path (const UCLinkType link_type, const gchar *proto); gchar * uc_check_get_link_type_label (const UCLinkType type); void uc_check_refresh_link (const guint32 id); void uc_check_refresh_link_real (UCLinkProperties *prop); gboolean uc_check_refresh_link_get_value (void); void uc_check_refresh_link_set_value (const gboolean value); gchar * uc_check_get_link_type_for_icon (const gchar *proto); GdkPixbuf * uc_check_get_link_type_icon (const UCLinkType link_type, const gchar *proto); void uc_check_currentitem_init (UCLinkProperties *parent, gchar *current_host, gchar *current_path, UCHTMLTag *tag, gchar *url, gchar *label, const xmlNodePtr *node); void uc_check_wait (void); gboolean uc_check_link_already_checked_with_insert (UCLinkProperties *prop, gchar *url); gpointer uc_check_register_link (const gchar *normalized_url, UCLinkProperties *lp); UCLinkProperties * uc_check_link_get_properties (const guint depth, gchar *current_host, gchar *current_path, UCHTMLTag *tag, UCLinkProperties *old_prop, gboolean *accept, guint retry); UCLinkProperties * uc_check_link_properties_node_new (void); void uc_check_mx_is_valid (void); gboolean uc_check_status_is_ignored (const gchar *status); gboolean uc_check_status_is_good (const gchar *status); gboolean uc_check_status_is_bad (const gchar *status); gboolean uc_check_status_is_malformed (const gchar *status); gboolean uc_check_status_is_timeout (const gchar *status); gboolean uc_check_status_is_email (const gchar *status); void uc_check_suspend_continue (void); gboolean uc_check_cancel_get_value (void); gboolean uc_check_suspend_get_value (void); gboolean uc_check_ignore_item_get_value (void); gint32 uc_check_treeview_get_selected_row_id (void); void uc_check_web_begin (void); void uc_check_bookmarks_begin (void); void uc_check_cancel_set_value (const gboolean value); void uc_check_ignore_item_set_value (const gboolean value); void uc_check_display_items_active_all (void); void uc_check_display_list (GList *list, gchar *path); void uc_check_display_list_with_status (GList *list, GtkTreeIter iter, const guint view_type); void uc_check_display_list_with_type (GList *list, GtkTreeIter iter, const UCLinkType link_type); void uc_check_display_list_with_protocol (GList *list, GtkTreeIter iter, const gchar *proto); void uc_check_reset (void); void uc_check_alarm_callback (const int dum); void uc_check_link_view_source (void);
struct UCCurrentItem { gchar *current_host; gchar *current_path; UCHTMLTag *tag; GList *list_ptr; UCLinkProperties *parent; xmlNodePtr xml_node; gchar *url; gchar *label; };
typedef enum { UC_HTTP_CHECK_RETURN_SAME, UC_HTTP_CHECK_RETURN_OK, UC_HTTP_CHECK_RETURN_BAD, UC_HTTP_CHECK_RETURN_REDIR, UC_HTTP_CHECK_RETURN_IGNORE, UC_HTTP_CHECK_RETURN_FAKED_URL, UC_HTTP_CHECK_RETURN_TIMEOUT, UC_HTTP_CHECK_RETURN_MALFORMED } UCHTTPCheckReturn;
gboolean uc_check_content_type_w3c_accepted (const gchar *type, gchar *path, gchar *content_type);
|
|
|
|
|
|
Returns : |
gboolean uc_check_is_w3c_alert (const UCLinkProperties *prop);
|
|
Returns : |
void uc_check_run_w3c_checks (UCLinkProperties *prop);
Run all w3c checks on the given node.
|
Current node. |
void uc_check_run_security_checks (UCLinkProperties *prop);
Run all security checks on the given node.
|
Current node. |
UCLinkProperties * uc_check_copy_node (UCLinkProperties *src, UCLinkProperties *dst);
|
|
|
|
Returns : |
gboolean uc_check_is_main_page (const UCLinkProperties *prop);
|
|
Returns : |
gchar * uc_check_get_link_type_icon_path (const UCLinkType link_type, const gchar *proto);
Associate a icon path with a given link type.
See: uc_check_get_link_type_for_icon()
,
uc_check_get_link_type_icon()
|
link type. |
|
protocol of the link. |
Returns : |
The icon path corresponding to the given link type. |
gchar * uc_check_get_link_type_label (const UCLinkType type);
Associate a label with a given link type.
|
link type. |
Returns : |
The label corresponding to the given link type. |
void uc_check_refresh_link_set_value (const gboolean value);
|
gchar * uc_check_get_link_type_for_icon (const gchar *proto);
Check if we are dealing with a SSL protocol (HTTPS) or a FTP protocol.
|
protocol. |
Returns : |
The protocol we are dealing with. |
GdkPixbuf * uc_check_get_link_type_icon (const UCLinkType link_type, const gchar *proto);
Associate a icon with a given link type.
See: uc_check_get_link_type_for_icon()
,
uc_check_get_link_type_icon_path()
|
link type. |
|
protocol of the link. |
Returns : |
A GdkPixbuf object corresponding to the given link type. |
void uc_check_currentitem_init (UCLinkProperties *parent, gchar *current_host, gchar *current_path, UCHTMLTag *tag, gchar *url, gchar *label, const xmlNodePtr *node);
|
|
|
|
|
|
|
|
|
|
|
|
|
gboolean uc_check_link_already_checked_with_insert (UCLinkProperties *prop, gchar *url);
Check if a given url already has been checked. If not, it insert it in the already checked urls list.
See: uc_check_link_already_checked-),
uc_check_register_link()
,
uc_lists_already_checked_links_append()
|
the UCLinkPropertie node of the link to insert. |
|
the url to insert. |
Returns : |
TRUE if the given url was already been checked.
|
gpointer uc_check_register_link (const gchar *normalized_url, UCLinkProperties *lp);
Register a link in the checked urls list and update the check report.
|
the url of the link. |
|
the UCLinkProperties of the link. |
Returns : |
a gpointer on the new item.
|
UCLinkProperties * uc_check_link_get_properties (const guint depth, gchar *current_host, gchar *current_path, UCHTMLTag *tag, UCLinkProperties *old_prop, gboolean *accept, guint retry);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
UCLinkProperties * uc_check_link_properties_node_new (void);
Returns : |
void uc_check_mx_is_valid (void);
Test if the MX of the selected E-Mail link is valid. launch a popup to inform the user of its state
gboolean uc_check_status_is_ignored (const gchar *status);
Test a given status code to see if it come from a ignored link.
|
status code to test. |
Returns : |
TRUE if the link has been ignored
by the user.
|
gboolean uc_check_status_is_good (const gchar *status);
Test a given status code to see if it come from a good link.
|
status code to test. |
Returns : |
TRUE if we consider that the given
status code is good.
|
gboolean uc_check_status_is_bad (const gchar *status);
Test a given status code to see if it come from a bad link.
|
status code to test. |
Returns : |
TRUE if we consider that the given
status code is bad.
|
gboolean uc_check_status_is_malformed (const gchar *status);
Test a given status code to see if it come from a malformed link.
|
status code to test. |
Returns : |
TRUE if the link is malformed.
|
gboolean uc_check_status_is_timeout (const gchar *status);
Test a given status code to see if it come from a timedouted link.
|
status code to test. |
Returns : |
TRUE if we consider that the given
status code is timeout.
|
gboolean uc_check_status_is_email (const gchar *status);
Test a given status code to see if it come from a E-Mail link.
|
status code to test. |
Returns : |
TRUE if the given status is the status
of a E-Mail link.
|
void uc_check_suspend_continue (void);
Wait until the check can be alive again.
gint32 uc_check_treeview_get_selected_row_id (void);
Get the current selected row in the main tree view.
Returns : |
The id of the current selected row in the url treeview. |
void uc_check_ignore_item_set_value (const gboolean value);
|
void uc_check_display_list (GList *list, gchar *path);
Display recursively urls in the treeview.
See: uc_check_display_list_with_status()
,
uc_check_display_list_with_type()
,
uc_check_display_list_with_protocol()
|
GList of the links to display. |
|
value to build tree view path. |
void uc_check_display_list_with_status (GList *list, GtkTreeIter iter, const guint view_type);
Only display recursively urls of a given status.
See: uc_check_display_list()
,
uc_check_display_list_with_type()
,
uc_check_display_list_with_protocol()
|
GList of the links to display. |
|
a GtkTreeIter. |
|
the status to display. |
void uc_check_display_list_with_type (GList *list, GtkTreeIter iter, const UCLinkType link_type);
Only display recursively urls of a given type.
See: uc_check_display_list()
,
uc_check_display_list_with_status()
,
uc_check_display_list_with_protocol()
|
GList of the links to display. |
|
a GtkTreeIter. |
|
the type to display. |
void uc_check_display_list_with_protocol (GList *list, GtkTreeIter iter, const gchar *proto);
Only display recursively urls of a given protocol.
See: uc_check_display_list()
,
uc_check_display_list_with_status()
,
uc_check_display_list_with_type()
|
GList of the links to display. |
|
a GtkTreeIter. |
|
the protocol to display. |