![]() |
![]() |
![]() |
gURLChecker Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
UCURLsUserActions * uc_application_get_urls_user_action (gchar *key); UCURLsUserActions * uc_application_get_urls_user_action_by_value (gchar *value); void uc_application_urls_user_actions_init (void); #define UC_DISPLAY_PROTO_IS (flag) #define UC_DISPLAY_PROTO_IS_NONE #define UC_DISPLAY_PROTO_SET (flag) #define UC_DISPLAY_PROTO_SET_NONE #define UC_DISPLAY_PROTO_UNSET (flag) #define UC_DISPLAY_SET_ALL #define UC_DISPLAY_STATUS_IS (flag) #define UC_DISPLAY_STATUS_IS_NONE #define UC_DISPLAY_STATUS_SET (flag) #define UC_DISPLAY_STATUS_SET_NONE #define UC_DISPLAY_STATUS_UNSET (flag) #define UC_DISPLAY_TYPE_IS (flag) #define UC_DISPLAY_TYPE_IS_NONE #define UC_DISPLAY_TYPE_SET (flag) #define UC_DISPLAY_TYPE_SET_NONE #define UC_DISPLAY_TYPE_UNSET (flag) #define UC_BUFFER_DATETIME_LEN #define UC_SYSTEM_NAME #define UC_VERSION #define UC_UPDATE_UI #define UC_GLADE_XML_FILENAME #define UC_STYLESHEETS_DIR #define UC_PIXMAPS_DIR #define UC_DIALOG_SETTINGS_DOCUMENT_TYPES_MAX_COLS #define UC_CHECK_BUTTON_MAX_DISPLAY #define UC_CHECK_MESSAGE_LABEL_FIRST #define UC_CHECK_MESSAGE_LABEL_SECOND #define UC_CHECK_MESSAGE_LABEL_THIRD #define UC_STATUS_CODE_INTERNALS_LIMIT #define UC_STATUS_CODE_BAD_METHOD #define UC_STATUS_CODE_PAGE_OK #define UC_STATUS_CODE_NO_DATA #define UC_STATUS_CODE_MOVED_PERMANENTLY #define UC_STATUS_CODE_REDIRECTED #define UC_STATUS_CODE_REDIRECTED_SEE_OTHER #define UC_STATUS_CODE_RESTRICTED #define UC_STATUS_CODE_PAGE_NOT_FOUND #define UC_STATUS_CODE_TIMEOUT #define UC_STATUS_CODE_FTP_MAX_CLIENTS #define UC_STATUS_CODE_UNKNOWN #define UC_STATUS_CODE_IGNORED_LINK #define UC_STATUS_CODE_MALFORMED_LINK #define UC_STATUS_CODE_FILE_PROTO_ERROR #define UC_STATUS_CODE_BAD_EMAIL_LINK #define UC_STATUS_CODE_BAD_EMAIL_LINK_MX #define UC_STATUS_CODE_GOOD_EMAIL_LINK #define UC_STATUS_CODE_FTP_OK #define UC_STATUS_CODE_FTP_BAD #define UC_SET_COOKIE #define UC_IGNORED_LINK_BGCOLOR #define UC_BAD_LINK_BGCOLOR #define UC_GOOD_LINK_BGCOLOR #define UC_TIMEOUT_LINK_BGCOLOR #define UC_MALFORMED_LINK_BGCOLOR #define UC_HOST_UNREACHABLE_LINK_BGCOLOR #define UC_NO_DATA_LINK_BGCOLOR #define UC_RESTRICTED_LINK_BGCOLOR #define UC_FILE_ERROR_LINK_BGCOLOR #define UC_BAD_EMAIL_LINK_BGCOLOR #define UC_GOOD_EMAIL_LINK_BGCOLOR #define UC_CHECK_PROTOCOLS_ACCEPTED #define UC_CHECK_PROTOCOLS_ACCEPTED_LEN #define UC_CHECK_PROTOCOLS_GET_ACCEPTED #define UC_SPLIT_DELIMITER #define UC_DEFAULT_SECURITY_BAD_EXTENSIONS #define UC_DEFAULT_SECURITY_VIRII_EXTENSIONS #define UC_DEFAULT_W3C_HTML_EXTENSIONS #define UC_DEFAULT_W3C_CSS_EXTENSIONS #define UC_LABEL_DISPLAY_MAX_LEN #define UC_DEFAULT_WEB_BROWSER_PATH #define WSENS (name, value) #define UC_GET_WIDGET (name, window, widget) #define UC_SET_WIDGET (name, window, widget) #define WGET (name) #define UC_BUFFER_LEN #define UC_BUFFER_DATE_LEN #define UC_HEADER_STATUS_CODE_LEN #define UC_HEADER_STATUS_CODE_FIRST_POS #define UC_PROTOCOL_FTP #define UC_PROTOCOL_HTTP #define UC_PROTOCOL_HTTPS #define UC_PROTOCOL_MAILTO #define UC_PROTOCOL_FILE #define UC_CONTENT_TYPE #define UC_CONTENT_TYPE_FTP #define UC_CONTENT_LENGTH #define UC_LAST_MODIFIED #define UC_CONTENT_TYPE_HTML #define UC_CONTENT_TYPE_CSS #define UC_HEADER_STATUS #define UC_CONTENT_LOCATION #define UC_LOCATION #define UC_SERVER #define UC_URL_DEFAULT_PORT #define UC_URL_DEFAULT_SSL_PORT #define UC_URL_DEFAULT_FTP_PORT #define UC_SOCKET_OPEN_FORCE_ARGS_USE #define UC_SOCKET_OPEN_DEFAULT #define UC_TOOLTIPS_DELAY_DEFAULT #define UC_CHECK_WAIT_DEFAULT #define UC_CHECK_TIMEOUT_DEFAULT #define UC_MAX_DEPTH_LEVEL #define UC_TIMEOUTS_BLOCKED_DEFAULT #define UC_USER_AGENT UCStatusCode; UCHTMLTag; UCLinkProperties; #define UC_WWW_AUTHENTICATE
UCURLsUserActions * uc_application_get_urls_user_action (gchar *key);
Get a action by its key.
|
user action key. |
Returns : |
A UCURLsUserActions action node associated with the given id. |
UCURLsUserActions * uc_application_get_urls_user_action_by_value (gchar *value);
Get a action by its value.
|
user action value. |
Returns : |
A UCURLsUserActions action node associated with the given value. |
void uc_application_urls_user_actions_init
(void);
This function load the actions tp associate with bad URLs.
#define UC_DISPLAY_PROTO_UNSET(flag) current_display_proto &= ~(flag)
|
#define UC_DISPLAY_STATUS_UNSET(flag) current_display_status &= ~(flag)
|
#define UC_BUFFER_DATETIME_LEN
Macro to indicate maximum length of date and time buffers.
#define UC_DIALOG_SETTINGS_DOCUMENT_TYPES_MAX_COLS
Macro for the maximum number of columns to display for document types in the "Documents" and "Images" notbooks of the settings.
#define UC_CHECK_BUTTON_MAX_DISPLAY
Macro for the maximum number of check boxes to display for document types in the "Documents" and "Images" notbooks of the settings.
#define UC_CHECK_MESSAGE_LABEL_FIRST
Macro to indicate on which location on the check dialog we must dislay a message.
#define UC_CHECK_MESSAGE_LABEL_SECOND
Macro to indicate on which location on the check dialog we must dislay a message.
#define UC_CHECK_MESSAGE_LABEL_THIRD
Macro to indicate on which location on the check dialog we must dislay a message.
#define UC_STATUS_CODE_INTERNALS_LIMIT
Macro to indicate that all status codes upper are gURLChecker internal status codes.
#define UC_STATUS_CODE_MOVED_PERMANENTLY
Macro for HTTP status code 301.
#define UC_STATUS_CODE_REDIRECTED_SEE_OTHER
Macro for HTTP status code 303.
#define UC_STATUS_CODE_FTP_MAX_CLIENTS
Macro for FTP response we are using for "Max clients".
#define UC_STATUS_CODE_IGNORED_LINK
Macro for gURLChecker internal status code.
#define UC_STATUS_CODE_MALFORMED_LINK
Macro for gURLChecker internal status code.
#define UC_STATUS_CODE_FILE_PROTO_ERROR
Macro for gURLChecker internal status code.
#define UC_STATUS_CODE_BAD_EMAIL_LINK
Macro for gURLChecker internal status code.
#define UC_STATUS_CODE_BAD_EMAIL_LINK_MX
Macro for gURLChecker internal status code.
#define UC_STATUS_CODE_GOOD_EMAIL_LINK
Macro for gURLChecker internal status code.
#define UC_HOST_UNREACHABLE_LINK_BGCOLOR
Macro for "host unreachable" links color.
#define UC_NO_DATA_LINK_BGCOLOR
Macro for color of good links with no content.
#define UC_FILE_ERROR_LINK_BGCOLOR
Macro for local files links color when user choose to consider them like an error.
#define UC_CHECK_PROTOCOLS_ACCEPTED
Macro for indicate which protocols we can check. For the moment gURLChecker can only check HTTP protocol.
#define UC_CHECK_PROTOCOLS_ACCEPTED_LEN
Macro for indicate the number of protocols we can check.
#define UC_CHECK_PROTOCOLS_GET_ACCEPTED
Macro to get protocols we can check.
#define UC_DEFAULT_SECURITY_BAD_EXTENSIONS
Macro to indicate for which bad extensions we must search.
#define UC_DEFAULT_SECURITY_VIRII_EXTENSIONS
Macro to indicate for which extensions we must search for virii.
#define UC_DEFAULT_W3C_HTML_EXTENSIONS
Macro to indicate for which extensions we must search for HTML validation.
#define UC_DEFAULT_W3C_CSS_EXTENSIONS
Macro to indicate for which extensions we must search for CSS validation.
#define UC_LABEL_DISPLAY_MAX_LEN
Macro to indicate the maximum display size of a string.
#define UC_DEFAULT_WEB_BROWSER_PATH
Macro to specify default browser path location.
#define WSENS(name, value)
Macro to set the "sensitive" property of a widget.
|
name of the widget in libglade XML file. |
|
TRUE or FALSE. |
#define UC_GET_WIDGET(name, window, widget)
Macro to get a GtkWidget in the third argument.
see
: UC_SET_WIDGET()
#define UC_SET_WIDGET(name, window, widget)
Macro to save a GtkWidget to retrieve it faster later.
see
: UC_GET_WIDGET()
#define WGET(name)
Macro to get a GtkWidget from a GladeXML object.
|
name of the widget to retreive. |
#define UC_HEADER_STATUS_CODE_LEN
Macro indicate the maximum length of a HTTP status code.
#define UC_HEADER_STATUS_CODE_FIRST_POS
Macro to indicate the first position of the HTTP status code in the buffer.
#define UC_CONTENT_TYPE_HTML
Macro for the HTTP content type string identifier.
#define UC_URL_DEFAULT_PORT
Macro to indicate the default URL port when it is not specified.
#define UC_URL_DEFAULT_SSL_PORT
Macro to indicate the default URL port when it is not specified.
#define UC_TOOLTIPS_DELAY_DEFAULT
Macro to indicate main tree view tooltip delay.
#define UC_CHECK_WAIT_DEFAULT
Macro for default time to wait between links check.
#define UC_TIMEOUTS_BLOCKED_DEFAULT
Macro for maximum number of attempts after a timedouted host should not be checked anymore
typedef struct { gchar *color; gchar *message; gchar *description; GdkPixbuf *icon_file; } UCStatusCode;
Structure to store status code properties.
typedef struct { guint depth; gchar *label; gchar *value; UCLinkType type; } UCHTMLTag;
Structure for HTML tags nodes.
typedef struct { guint32 uid; gchar *treeview_path; struct _UCLinkProperties *parent; gchar *current_path; GtkTreeIter iter; gpointer tag; UCLinkType link_type; GdkPixbuf *link_icon; GdkPixbuf *status_icon; gchar *user_action; gchar *link_value; gchar *url; gchar *normalized_url; gchar *label; gchar *protocol; gchar *h_name; gchar *port; gchar *path; gchar *args; gchar *domain; GHashTable *header; guint header_size; guint depth_level; gboolean is_parsable; gboolean is_downloadable; gboolean checked; xmlNodePtr xml_node; #ifdef ENABLE_JSON JsonArray *json_array; #endif guint32 bookmark_folder_id; guint32 bookmark_id; gboolean to_delete; GList *metas; GList *emails; GList *all_links; GList *childs; GList *similar_links_parents; GList *bad_extensions; gboolean virii; gchar *virname; gboolean w3c_valid; GList *tags; } UCLinkProperties;
Structure to store links properties.
guint32 |
Unique identifier for this node. |
gchar * |
tree view path of this node (it is filled on tree view display). |
struct _UCLinkProperties * |
Parent of this node. |
gchar * |
Current path of the page containing this link. |
GtkTreeIter |
GtkTreeIter iterator used for main URL treeview management. |
gpointer |
UCHTMLTag node for this link. |
Type of this link. | |
GdkPixbuf * |
Icon associated with the type of this link. |
GdkPixbuf * |
Icon associated with the status of this link. |
gchar * |
A user defined action label |
gchar * |
Brut value of this link. |
gchar * |
Well formed URL of this link. |
gchar * |
Absolute URL. |
gchar * |
Label of this link. |
gchar * |
Protocol of the URL. |
gchar * |
Hostname of the URL. |
gchar * |
Port of the URL. |
gchar * |
Path of the URL. |
gchar * |
Arguments of the URL. |
gchar * |
Domain name of the URL hostname. |
GHashTable * |
GHashTable containing HTTP header fields and values. |
guint |
Size of the HTTP header. |
guint |
Depth level of this node. |
gboolean |
TRUE if the content pointed by this link can be parse to retreive others links. |
gboolean |
TRUE if the content of this link can be downloaded. |
gboolean |
TRUE is this link has already been proccessed. |
Reference on the XmlNodePtr of the XmlDocPtr for this node. This field is used only for bookmarks. | |
JsonArray * |
|
guint32 |
Reference on the parent id. This field is used only for FF sqlite3 bookmarks. |
guint32 |
id of the bookmark in FF database |
gboolean |
TRUE if this node has been deleted. This field is used only for bookmarks. |
GList * |
GList of page HTML meta tags (pointers on this node "tags" propertie). |
GList * |
GList of E-Mails in this page (pointers on this node "tags" propertie). |
GList * |
GList of all links in this page (pointers on this node "tags" propertie). |
GList * |
Childs nodes of this node. |
GList * |
Pointer on other nodes for links in this page that has been already processed in another page. |
GList * |
GList of bad extensions that exists on the server for this node. |
gboolean |
if the file is a virus or not |
gchar * |
Name of the virus is virii == TRUE
|
gboolean |
TRUE if the document is in a correct format
|
GList * |
GList of UCHTMLTag for all links in this page. |