ELinks 0.18.0
|
This is one of the building stones of ELinks architecture — this structure carries information about the specific ELinks session. More...
#include <session.h>
Public Member Functions | |
LIST_HEAD_EL (struct session) | |
Data Fields | |
The vital session data | |
struct window * | tab |
struct option * | option |
Browsing history | |
struct ses_history | history |
The current document | |
struct file_to_load list | more_files |
struct download | loading |
struct uri * | loading_uri |
int | reloadlevel |
int | redirect_cnt |
struct document_view * | doc_view |
struct document_view list | scrn_frames |
struct document_view list | scrn_iframes |
struct uri * | download_uri |
The URI from which the next start_download() or resume_download() call should download, or NULL if no such call is pending. | |
struct uri * | referrer |
The URI which is the referrer to the current loaded document or NULL if there are no referrer. | |
The current action-in-progress selector | |
struct session_task | task |
The current browsing state | |
int | search_direction |
struct kbdprefix | kbdprefix |
int | exit_query |
timer_id_T | display_timer |
timer_id_T | status_redraw_timer |
enum insert_mode | insert_mode |
The text input form insert mode. | |
enum navigate_mode | navigate_mode |
char * | search_word |
char * | last_search_word |
struct type_query list | type_queries |
The possibly running type queries (what-to-do-with-that-file?) | |
struct session_status | status |
The info for status displaying. | |
Related Symbols | |
(Note that these are not member symbols.) | |
struct download * | get_current_download (struct session *ses) |
struct session * | init_session (struct session *base_session, struct terminal *term, struct uri *uri, int in_background) |
char * | get_current_url (struct session *ses, char *str, size_t str_size) |
Gets the url being viewed by this session. | |
char * | get_current_title (struct session *ses, char *str, size_t str_size) |
Gets the title of the page being viewed by this session. | |
char * | get_current_link_url (struct session *ses, char *str, size_t str_size) |
Gets the url of the link currently selected. | |
char * | get_current_link_name (struct session *ses, char *str, size_t str_size) |
get_current_link_name: returns the name of the current link (the text between <A> and </A>), str is a preallocated string, str_size includes the null char. | |
struct link * | get_current_session_link (struct session *ses) |
int | eat_kbd_repeat_count (struct session *ses) |
int | set_kbd_repeat_count (struct session *ses, int new_count) |
static int | have_location (struct session *ses) |
Return if we have anything being loaded in this session already. | |
void | set_session_referrer (struct session *ses, struct uri *referrer) |
Swaps the current session referrer with the new one passed as referrer. | |
int | session_is_loading (struct session *ses) |
session_is_loading() is like !!get_current_download() but doesn't take session.req_sent into account. | |
This is one of the building stones of ELinks architecture — this structure carries information about the specific ELinks session.
Each tab (thus, at least one per terminal, in the normal case) has its own session. Session describes mainly the current browsing and control state, from the currently viewed document through the browsing history of this session to the status bar information.
session::LIST_HEAD_EL | ( | struct session | ) |
|
related |
|
related |
get_current_link_name: returns the name of the current link (the text between <A> and </A>), str is a preallocated string, str_size includes the null char.
|
related |
Gets the url of the link currently selected.
Writes it into str. A maximum of str_size bytes (including null) will be written.
|
related |
Gets the title of the page being viewed by this session.
Writes it into str. A maximum of str_size bytes (including null) will be written.
|
related |
Gets the url being viewed by this session.
Writes it into str. A maximum of str_size bytes (including null) will be written.
|
related |
Return if we have anything being loaded in this session already.
|
related |
|
related |
session_is_loading() is like !!get_current_download() but doesn't take session.req_sent into account.
|
related |
Swaps the current session referrer with the new one passed as referrer.
referrer may be NULL.
timer_id_T session::display_timer |
struct document_view* session::doc_view |
struct uri* session::download_uri |
The URI from which the next start_download() or resume_download() call should download, or NULL if no such call is pending.
When the user requests a download, one of those functions is given as a callback to query_file(), which asks the user where to save the downloaded file. The URI cannot be given to the callback as a parameter because query_file() supports only one void * parameter for the callback and that one is already used for the struct session *. Instead, the URI is saved here before the query_file() call.
int session::exit_query |
struct ses_history session::history |
enum insert_mode session::insert_mode |
The text input form insert mode.
It is a tristate controlled by the boolean document.browse.forms.insert_mode option. When disabled we use modeless insertion and we always insert stuff into the text input field. When enabled it is possible to switch insertion on and off using ACT_EDIT_ENTER and *_CANCEL.
struct kbdprefix session::kbdprefix |
char* session::last_search_word |
struct download session::loading |
struct uri* session::loading_uri |
struct file_to_load list session::more_files |
enum navigate_mode session::navigate_mode |
struct option* session::option |
int session::redirect_cnt |
struct uri* session::referrer |
The URI which is the referrer to the current loaded document or NULL if there are no referrer.
The referrer
member's sole purpose is to have the information handy when loading URIs. It is not 'filtered' in anyway at this level only at the lower ones.
int session::reloadlevel |
struct document_view list session::scrn_frames |
struct document_view list session::scrn_iframes |
int session::search_direction |
char* session::search_word |
struct session_status session::status |
The info for status displaying.
timer_id_T session::status_redraw_timer |
struct window* session::tab |
struct session_task session::task |
struct type_query list session::type_queries |
The possibly running type queries (what-to-do-with-that-file?)