ELinks 0.16.1.1
|
This is one of the building stones of ELinks architecture — this structure carries information about the specific ELinks session. More...
#include <session.h>
Data Fields | |
void * | magic1 |
struct session * | next |
struct session * | prev |
void * | magic2 |
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 |
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.) | |
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 ! |
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.
|
Return if we have anything being loaded in this session already.
|
session_is_loading() is like !
!get_current_download() but doesn't take session.req_sent into account.
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 |
void* session::magic1 |
void* session::magic2 |
struct file_to_load list session::more_files |
enum navigate_mode session::navigate_mode |
struct session* session::next |
struct option* session::option |
struct session* session::prev |
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.
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?)