![]() |
![]() |
![]() |
gURLChecker Reference Manual | ![]() |
---|
checkcheck — Manage some common work relative on links check. |
#define UC_CHECK_PARSER_WHILE_CONDITION #define UC_CHECK_ABORT_IF_CONDITION struct UCCurrentItem; enum UCHTTPCheckReturn; guint32 uc_check_get_main_page_id (void); 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;
UCLinkProperties* uc_check_copy_node (UCLinkProperties *src, UCLinkProperties *dst);
src : |
|
dst : |
|
Returns : |
gboolean uc_check_is_main_page (const UCLinkProperties *prop);
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 : |
link type. |
proto : |
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.
type : |
link type. |
Returns : | The label corresponding to the given link type. |
void uc_check_refresh_link_set_value (const gboolean value);
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.
proto : |
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 : |
link type. |
proto : |
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);
parent : |
|
current_host : |
|
current_path : |
|
tag : |
|
url : |
|
label : |
|
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()
prop : |
the UCLinkPropertie node of the link to insert. |
url : |
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.
normalized_url : |
the url of the link. |
lp : |
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);
depth : |
|
current_host : |
|
current_path : |
|
tag : |
|
old_prop : |
|
accept : |
|
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 email address 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 : |
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 : |
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 : |
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 : |
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 : |
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 email link.
status : |
status code to test. |
Returns : | TRUE if the given status is the status
of a email 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);
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()
list : |
GList of the links to display. |
path : |
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()
list : |
GList of the links to display. |
iter : |
a GtkTreeIter. |
view_type : |
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()
list : |
GList of the links to display. |
iter : |
a GtkTreeIter. |
link_type : |
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()
list : |
GList of the links to display. |
iter : |
a GtkTreeIter. |
proto : |
the protocol to display. |
<< callbacks | connection >> |