application

application — Manage some general application work.

Synopsis

                    UCURLsUserActions;
void                uc_application_main_tree_apply_filters
                                                        (const gchar *wname);
void                uc_application_reset_menu_protocols (void);
void                uc_application_reset_menu_status    (void);
void                uc_application_reset_menu_types     (void);
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);
gboolean            uc_application_cookie_warning_dialog_show
                                                        (const gchar *server,
                                                         const gchar *page,
                                                         const gchar *label,
                                                         gchar **name,
                                                         gchar **value,
                                                         gchar **path,
                                                         gchar **expires,
                                                         const UCCookiesAction action);
void                uc_application_w3c_validate         (void);
void                uc_application_buffer_show          (const gchar *title,
                                                         const gchar *message);
void                uc_application_build_projects_treeview
                                                        (void);
gchar *             uc_application_input_dialog         (const gchar *title,
                                                         const gchar *text);
gchar *             uc_application_input_file_dialog    (const gchar *title,
                                                         const gchar *text);
void                uc_application_view_bad_extensions_dialog_show
                                                        (void);
void                uc_application_set_status_bar       (const gfloat progress,
                                                         const gchar *msg);
void                uc_application_open_project_dialog_show
                                                        (void);
gboolean            uc_application_project_information_dialog_show
                                                        (void);
void                uc_application_progress_dialog_set_modal
                                                        (const gboolean modal);
gboolean            uc_application_treeview_get_selected_iter
                                                        (const GtkTreeView *tv,
                                                         GtkTreeIter *iter);
void                uc_application_build_url_treeview   (void);
void                uc_application_main_tree_display_all
                                                        (void);
void                uc_application_main_tree_collapse_all
                                                        (void);
void                uc_application_main_tree_expand_all (void);
void                uc_application_main_tree_display_branch
                                                        (const UCLinkProperties *prop);
void                uc_application_display_search_message
                                                        (const guint label_pos,
                                                         const gchar *message);
gint                uc_application_dialog_yes_no_show   (const gchar *message,
                                                         const GtkMessageType msg_type);
void                uc_application_search_dialog_show   (void);
void                uc_application_new_search_dialog_show
                                                        (void);
void                uc_application_add_filter_directory_add
                                                        (void);
void                uc_application_add_filter_domain_add
                                                        (void);
void                uc_application_add_filter_domain_remove
                                                        (void);
void                uc_application_add_filter_directory_remove
                                                        (void);
void                uc_application_add_filter_directory_dialog_show
                                                        (void);
void                uc_application_page_information_dialog_show
                                                        (void);
void                uc_application_display_state_message
                                                        (const guint label_pos,
                                                         const gchar *message);
void                uc_application_display_informations (GtkTreeView *treeview);
void                uc_application_treeview_activate_popup
                                                        (GdkEventButton *event);
void                uc_application_view_similar_links_dialog_show
                                                        (void);
void                uc_application_new_instance_launch  (void);
void                uc_application_launch_web_browser   (const gchar *url);
void                uc_application_menu_set_sensitive_all
                                                        (const gchar *name,
                                                         const gboolean val);
void                uc_application_proxy_frame_control_sensitive
                                                        (void);
void                uc_application_make_paths           (void);
void                uc_application_remove_paths         (void);
void                uc_application_view_source_dialog_show
                                                        (void);
void                uc_application_view_image_dialog_show
                                                        (void);
void                uc_application_dialog_show          (const gchar *message,
                                                         const GtkMessageType msg_type);
void                uc_application_globals_init         (void);
void                uc_application_init                 (gchar *url,
                                                         gchar *auth_user,
                                                         gchar *auth_password,
                                                         gboolean no_urls_args);
gboolean            uc_application_quit                 (void);
void                uc_application_draw_main_frames     (void);
void                uc_application_search_get_data      (void);
void                uc_application_get_bookmarks_project_data
                                                        (void);
void                uc_application_new_web_dialog_show  (void);
void                uc_application_new_local_file_dialog_show
                                                        (void);
void                uc_application_new_bookmarks_dialog_show
                                                        (void);
void                uc_application_open_dialog_show     (void);
void                uc_application_about_dialog_show    (void);
void                uc_application_progress_dialog_show ();
void                uc_application_settings_dialog_show (void);
gboolean            uc_application_settings_get_data    (void);
void                uc_application_status_code_properties_init
                                                        (void);
UCStatusCode *      uc_application_get_status_code_properties
                                                        (const gchar *status_code);
gboolean            uc_application_project_get_data     (const UCProjectType type);
gboolean            uc_application_auth_dialog_show     (const gchar *title,
                                                         const gchar *host);

Description

Details

UCURLsUserActions

typedef struct {
  gchar *id;
  gchar *label;
} UCURLsUserActions;

Structure to store bad URLs actions.

gchar *id;

Index of the action.

gchar *label;

Action label.

uc_application_main_tree_apply_filters ()

void                uc_application_main_tree_apply_filters
                                                        (const gchar *wname);

wname :


uc_application_reset_menu_protocols ()

void                uc_application_reset_menu_protocols (void);


uc_application_reset_menu_status ()

void                uc_application_reset_menu_status    (void);


uc_application_reset_menu_types ()

void                uc_application_reset_menu_types     (void);


uc_application_get_urls_user_action ()

UCURLsUserActions * uc_application_get_urls_user_action (gchar *key);

Get a action by its key.

key :

Returns :


uc_application_get_urls_user_action_by_value ()

UCURLsUserActions * uc_application_get_urls_user_action_by_value
                                                        (gchar *value);

Get a action by its value.

value :

Returns :


uc_application_urls_user_actions_init ()

void                uc_application_urls_user_actions_init
                                                        (void);

This function load the actions tp associate with bad URLs.


uc_application_cookie_warning_dialog_show ()

gboolean            uc_application_cookie_warning_dialog_show
                                                        (const gchar *server,
                                                         const gchar *page,
                                                         const gchar *label,
                                                         gchar **name,
                                                         gchar **value,
                                                         gchar **path,
                                                         gchar **expires,
                                                         const UCCookiesAction action);

Dialog for accepting/refusing a cookie.

server :

hostname.

page :

page name.

label :

dialog's label.

name :

cookie's name.

value :

cookie's value.

path :

cookie's path.

expires :

expirationdate.

action :

cookies action.

Returns :

TRUE if the cookie must be accepted.

uc_application_w3c_validate ()

void                uc_application_w3c_validate         (void);


uc_application_buffer_show ()

void                uc_application_buffer_show          (const gchar *title,
                                                         const gchar *message);

title :

message :


uc_application_build_projects_treeview ()

void                uc_application_build_projects_treeview
                                                        (void);


uc_application_input_dialog ()

gchar *             uc_application_input_dialog         (const gchar *title,
                                                         const gchar *text);

Show a prompt popup.

title :

title of the popup.

text :

The text to display.

Returns :

The user string. This is a newly allocated string.

uc_application_input_file_dialog ()

gchar *             uc_application_input_file_dialog    (const gchar *title,
                                                         const gchar *text);

Show a prompt popup to input a filename or directory.

title :

Title of the popup.

text :

The text to display.

Returns :

The user string. This is a newly allocated string.

uc_application_view_bad_extensions_dialog_show ()

void                uc_application_view_bad_extensions_dialog_show
                                                        (void);

Show bad extensions dialog.


uc_application_set_status_bar ()

void                uc_application_set_status_bar       (const gfloat progress,
                                                         const gchar *msg);

Refresh application status bar.

progress :

0, or a value if we want progress bar on the status bar.

msg :

message to display in satus bar.

uc_application_open_project_dialog_show ()

void                uc_application_open_project_dialog_show
                                                        (void);

Show the open project dialog.


uc_application_project_information_dialog_show ()

gboolean            uc_application_project_information_dialog_show
                                                        (void);

Show the project properties dialog.

Returns :

TRUE if project must be saved.

uc_application_progress_dialog_set_modal ()

void                uc_application_progress_dialog_set_modal
                                                        (const gboolean modal);

modal :


uc_application_treeview_get_selected_iter ()

gboolean            uc_application_treeview_get_selected_iter
                                                        (const GtkTreeView *tv,
                                                         GtkTreeIter *iter);

set the iterator for the current selection in a given treeview.

tv :

Tree view to work with.

iter :

Iterater to fill.

Returns :

TRUE if it has filled the given iter with selection.

uc_application_build_url_treeview ()

void                uc_application_build_url_treeview   (void);

Build all needed elements for the main URL tree view.


uc_application_main_tree_display_all ()

void                uc_application_main_tree_display_all
                                                        (void);

Display the whole list of checked url in the main url treeview.


uc_application_main_tree_collapse_all ()

void                uc_application_main_tree_collapse_all
                                                        (void);

Collapse the main url treeview.


uc_application_main_tree_expand_all ()

void                uc_application_main_tree_expand_all (void);

Expand the main url treeview.


uc_application_main_tree_display_branch ()

void                uc_application_main_tree_display_branch
                                                        (const UCLinkProperties *prop);

prop :


uc_application_display_search_message ()

void                uc_application_display_search_message
                                                        (const guint label_pos,
                                                         const gchar *message);

Display messages in the progess dialog during the search.

label_pos :

Position of the given message.

message :

Message to display.

uc_application_dialog_yes_no_show ()

gint                uc_application_dialog_yes_no_show   (const gchar *message,
                                                         const GtkMessageType msg_type);

Print a yes/no choice dialog.

message :

The message to display.

msg_type :

Type of the message.

Returns :

TRUE if user clicked on the OK button.

uc_application_search_dialog_show ()

void                uc_application_search_dialog_show   (void);

Show the search dialog.


uc_application_new_search_dialog_show ()

void                uc_application_new_search_dialog_show
                                                        (void);

Show the search dialog.


uc_application_add_filter_directory_add ()

void                uc_application_add_filter_directory_add
                                                        (void);

Add a directory filter.


uc_application_add_filter_domain_add ()

void                uc_application_add_filter_domain_add
                                                        (void);

Add a domain filter.


uc_application_add_filter_domain_remove ()

void                uc_application_add_filter_domain_remove
                                                        (void);

Remove a domain filter.


uc_application_add_filter_directory_remove ()

void                uc_application_add_filter_directory_remove
                                                        (void);

Remove a directory filter.


uc_application_add_filter_directory_dialog_show ()

void                uc_application_add_filter_directory_dialog_show
                                                        (void);


uc_application_page_information_dialog_show ()

void                uc_application_page_information_dialog_show
                                                        (void);

Show the properties dialog.


uc_application_display_state_message ()

void                uc_application_display_state_message
                                                        (const guint label_pos,
                                                         const gchar *message);

Display messages in the progess dialog during the check process

label_pos :

Position of the given message.

message :

Message to display.

uc_application_display_informations ()

void                uc_application_display_informations (GtkTreeView *treeview);

Search the header of a given url in the urls list to display it.

treeview :

Tree view to work with.

uc_application_treeview_activate_popup ()

void                uc_application_treeview_activate_popup
                                                        (GdkEventButton *event);

Display the treview popup menu.

event :

Event.

uc_application_view_similar_links_dialog_show ()

void                uc_application_view_similar_links_dialog_show
                                                        (void);

Show similar links dialog.


uc_application_new_instance_launch ()

void                uc_application_new_instance_launch  (void);

Launch a new instance of gURLChecker.


uc_application_launch_web_browser ()

void                uc_application_launch_web_browser   (const gchar *url);

Launch a web browser to view the selected url

url :

URL to pass to the web browser.

uc_application_menu_set_sensitive_all ()

void                uc_application_menu_set_sensitive_all
                                                        (const gchar *name,
                                                         const gboolean val);

name :

val :


uc_application_proxy_frame_control_sensitive ()

void                uc_application_proxy_frame_control_sensitive
                                                        (void);


uc_application_make_paths ()

void                uc_application_make_paths           (void);

Create the directories needed by gURLChecker.


uc_application_remove_paths ()

void                uc_application_remove_paths         (void);

Remove all application paths


uc_application_view_source_dialog_show ()

void                uc_application_view_source_dialog_show
                                                        (void);

Show view source dialog.


uc_application_view_image_dialog_show ()

void                uc_application_view_image_dialog_show
                                                        (void);

Show view image dialog.


uc_application_dialog_show ()

void                uc_application_dialog_show          (const gchar *message,
                                                         const GtkMessageType msg_type);

Print a alert box.

message :

The message to display.

msg_type :

Type of the message.

uc_application_globals_init ()

void                uc_application_globals_init         (void);

Initialisation of all globals.


uc_application_init ()

void                uc_application_init                 (gchar *url,
                                                         gchar *auth_user,
                                                         gchar *auth_password,
                                                         gboolean no_urls_args);

gURLChecker initialization.

url :

the command line URL, or NULL

auth_user :

user for authentication.

auth_password :

password for authentication.

no_urls_args :

if TRUE, do not check URL with arguments

uc_application_quit ()

gboolean            uc_application_quit                 (void);

Do a clean application exit.

Returns :

~TRUE if we must quit application.

uc_application_draw_main_frames ()

void                uc_application_draw_main_frames     (void);

Draw the two principals main frames for displaying urls list and headers.


uc_application_search_get_data ()

void                uc_application_search_get_data      (void);

Retreive the string to search and the search properties.


uc_application_get_bookmarks_project_data ()

void                uc_application_get_bookmarks_project_data
                                                        (void);

Retrieving bookmarks file to check.


uc_application_new_web_dialog_show ()

void                uc_application_new_web_dialog_show  (void);

Show the new web project dialog box.


uc_application_new_local_file_dialog_show ()

void                uc_application_new_local_file_dialog_show
                                                        (void);

Show the new local file project dialog box.


uc_application_new_bookmarks_dialog_show ()

void                uc_application_new_bookmarks_dialog_show
                                                        (void);

Show the new bookmarks project dialog box.


uc_application_open_dialog_show ()

void                uc_application_open_dialog_show     (void);


uc_application_about_dialog_show ()

void                uc_application_about_dialog_show    (void);

Show the about box.


uc_application_progress_dialog_show ()

void                uc_application_progress_dialog_show ();

Show the progess dialog.


uc_application_settings_dialog_show ()

void                uc_application_settings_dialog_show (void);

Show the settings dialog box.


uc_application_settings_get_data ()

gboolean            uc_application_settings_get_data    (void);

Retrieve user input data settings.

Returns :

TRUE if all inputs are ok.

uc_application_status_code_properties_init ()

void                uc_application_status_code_properties_init
                                                        (void);

This function load the properties to associate with a server status code.


uc_application_get_status_code_properties ()

UCStatusCode *      uc_application_get_status_code_properties
                                                        (const gchar *status_code);

Return properties for a given status code.

status_code :

Status code to work with.

Returns :

UCStatusCode propertie node associated with the given status code.

uc_application_project_get_data ()

gboolean            uc_application_project_get_data     (const UCProjectType type);

Retrieving url to check and some check properties.

type :

FIXME.

Returns :

TRUE if data input is ok.

uc_application_auth_dialog_show ()

gboolean            uc_application_auth_dialog_show     (const gchar *title,
                                                         const gchar *host);

Show the basic authentication dialog.

title :

string returned by the remote host when requested authentication.

host :

Returns :

TRUE if both user and password have been entered.