check

check — Manage some common work relative on links check.

Functions

gboolean uc_check_content_type_w3c_accepted ()
guint32 uc_check_get_main_page_id ()
gboolean uc_check_is_w3c_alert ()
void uc_check_run_w3c_checks ()
void uc_check_run_security_checks ()
void uc_check_refresh_report ()
void uc_check_set_depth ()
UCLinkProperties * uc_check_copy_node ()
gboolean uc_check_is_main_page ()
gchar * uc_check_get_link_type_icon_path ()
gchar * uc_check_get_link_type_label ()
void uc_check_refresh_link ()
void uc_check_refresh_link_real ()
gboolean uc_check_refresh_link_get_value ()
void uc_check_refresh_link_set_value ()
gchar * uc_check_get_link_type_for_icon ()
GdkPixbuf * uc_check_get_link_type_icon ()
void uc_check_currentitem_init ()
void uc_check_wait ()
gboolean uc_check_link_already_checked_with_insert ()
gpointer uc_check_register_link ()
UCLinkProperties * uc_check_link_get_properties ()
UCLinkProperties * uc_check_link_properties_node_new ()
void uc_check_mx_is_valid ()
gboolean uc_check_status_is_ignored ()
gboolean uc_check_status_is_good ()
gboolean uc_check_status_is_bad ()
gboolean uc_check_status_is_malformed ()
gboolean uc_check_status_is_timeout ()
gboolean uc_check_status_is_email ()
void uc_check_suspend_continue ()
gboolean uc_check_cancel_get_value ()
gboolean uc_check_suspend_get_value ()
gboolean uc_check_ignore_item_get_value ()
gint32 uc_check_treeview_get_selected_row_id ()
void uc_check_web_begin ()
void uc_check_bookmarks_begin ()
void uc_check_cancel_set_value ()
void uc_check_ignore_item_set_value ()
void uc_check_display_items_active_all ()
void uc_check_display_list ()
void uc_check_reset ()
void uc_check_alarm_callback ()
void uc_check_link_view_source ()

Types and Values

Description

Functions

uc_check_content_type_w3c_accepted ()

gboolean
uc_check_content_type_w3c_accepted (const gchar *type,
                                    gchar *path,
                                    gchar *content_type);

Returns


uc_check_get_main_page_id ()

guint32
uc_check_get_main_page_id (void);

Returns


uc_check_is_w3c_alert ()

gboolean
uc_check_is_w3c_alert (const UCLinkProperties *prop);

Returns


uc_check_run_w3c_checks ()

void
uc_check_run_w3c_checks (UCLinkProperties *prop);

Run all w3c checks on the given node.

Parameters

prop

Current node.

 

uc_check_run_security_checks ()

void
uc_check_run_security_checks (UCLinkProperties *prop);

Run all security checks on the given node.

Parameters

prop

Current node.

 

uc_check_refresh_report ()

void
uc_check_refresh_report (void);


uc_check_set_depth ()

void
uc_check_set_depth (GList *list,
                    const guint depth);


uc_check_copy_node ()

UCLinkProperties *
uc_check_copy_node (UCLinkProperties *src,
                    UCLinkProperties *dst);

Returns


uc_check_is_main_page ()

gboolean
uc_check_is_main_page (const UCLinkProperties *prop);

Returns


uc_check_get_link_type_icon_path ()

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()

Parameters

link_type

link type.

 

proto

protocol of the link.

 

Returns

The icon path corresponding to the given link type.


uc_check_get_link_type_label ()

gchar *
uc_check_get_link_type_label (const UCLinkType type);

Associate a label with a given link type.

Parameters

type

link type.

 

Returns

The label corresponding to the given link type.


uc_check_refresh_link ()

void
uc_check_refresh_link (const guint32 id);


uc_check_refresh_link_real ()

void
uc_check_refresh_link_real (UCLinkProperties *prop);


uc_check_refresh_link_get_value ()

gboolean
uc_check_refresh_link_get_value (void);

Returns


uc_check_refresh_link_set_value ()

void
uc_check_refresh_link_set_value (const gboolean value);


uc_check_get_link_type_for_icon ()

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.

Parameters

proto

protocol.

 

Returns

The protocol we are dealing with.


uc_check_get_link_type_icon ()

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()

Parameters

link_type

link type.

 

proto

protocol of the link.

 

Returns

A GdkPixbuf object corresponding to the given link type.


uc_check_currentitem_init ()

void
uc_check_currentitem_init (UCLinkProperties *parent,
                           gchar *current_host,
                           UCHTMLTag *tag,
                           gchar *url,
                           gboolean is_first);


uc_check_wait ()

void
uc_check_wait (void);


uc_check_link_already_checked_with_insert ()

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()

Parameters

prop

the UCLinkPropertie node of the link to insert.

 

url

the url to insert.

 

Returns

TRUE if the given url was already been checked.


uc_check_register_link ()

gpointer
uc_check_register_link (const gchar *normalized_url,
                        UCLinkProperties *lp);

Register a link in the checked urls list and update the check report.

Parameters

normalized_url

the url of the link.

 

lp

the UCLinkProperties of the link.

 

Returns

a gpointer on the new item.


uc_check_link_get_properties ()

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


uc_check_link_properties_node_new ()

UCLinkProperties *
uc_check_link_properties_node_new (void);

Returns


uc_check_mx_is_valid ()

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


uc_check_status_is_ignored ()

gboolean
uc_check_status_is_ignored (const gchar *status);

Test a given status code to see if it come from a ignored link.

Parameters

status

status code to test.

 

Returns

TRUE if the link has been ignored by the user.


uc_check_status_is_good ()

gboolean
uc_check_status_is_good (const gchar *status);

Test a given status code to see if it come from a good link.

Parameters

status

status code to test.

 

Returns

TRUE if we consider that the given status code is good.


uc_check_status_is_bad ()

gboolean
uc_check_status_is_bad (const gchar *status);

Test a given status code to see if it come from a bad link.

Parameters

status

status code to test.

 

Returns

TRUE if we consider that the given status code is bad.


uc_check_status_is_malformed ()

gboolean
uc_check_status_is_malformed (const gchar *status);

Test a given status code to see if it come from a malformed link.

Parameters

status

status code to test.

 

Returns

TRUE if the link is malformed.


uc_check_status_is_timeout ()

gboolean
uc_check_status_is_timeout (const gchar *status);

Test a given status code to see if it come from a timedouted link.

Parameters

status

status code to test.

 

Returns

TRUE if we consider that the given status code is timeout.


uc_check_status_is_email ()

gboolean
uc_check_status_is_email (const gchar *status);

Test a given status code to see if it come from a E-Mail link.

Parameters

status

status code to test.

 

Returns

TRUE if the given status is the status of a E-Mail link.


uc_check_suspend_continue ()

void
uc_check_suspend_continue (void);

Wait until the check can be alive again.


uc_check_cancel_get_value ()

gboolean
uc_check_cancel_get_value (void);

Returns


uc_check_suspend_get_value ()

gboolean
uc_check_suspend_get_value (void);

Returns


uc_check_ignore_item_get_value ()

gboolean
uc_check_ignore_item_get_value (void);

Returns


uc_check_treeview_get_selected_row_id ()

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.


uc_check_web_begin ()

void
uc_check_web_begin (void);


uc_check_bookmarks_begin ()

void
uc_check_bookmarks_begin (void);


uc_check_cancel_set_value ()

void
uc_check_cancel_set_value (const gboolean value);


uc_check_ignore_item_set_value ()

void
uc_check_ignore_item_set_value (const gboolean value);


uc_check_display_items_active_all ()

void
uc_check_display_items_active_all (void);


uc_check_display_list ()

void
uc_check_display_list (GList *list,
                       gchar *path,
                       GtkTreeIter iter);

Display recursively urls in the treeview.

Parameters

list

GList of the links to display.

 

path

value to build tree view path.

 

iter

A GtkTreeIter variable.

 

uc_check_reset ()

void
uc_check_reset (void);


uc_check_alarm_callback ()

void
uc_check_alarm_callback (const int dum);


uc_check_link_view_source ()

void
uc_check_link_view_source (void);

Types and Values

UC_CHECK_PARSER_WHILE_CONDITION

#define             UC_CHECK_PARSER_WHILE_CONDITION


UC_CHECK_ABORT_IF_CONDITION

#define             UC_CHECK_ABORT_IF_CONDITION


enum UCHTTPCheckReturn

Members

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