VLC 4.0.0-dev
|
Dialog callbacks to be implemented. More...
#include <vlc_dialog.h>
Data Fields | |
void(* | pf_display_login )(void *p_data, vlc_dialog_id *p_id, const char *psz_title, const char *psz_text, const char *psz_default_username, bool b_ask_store) |
Called when a login dialog needs to be displayed. More... | |
void(* | pf_display_question )(void *p_data, vlc_dialog_id *p_id, const char *psz_title, const char *psz_text, vlc_dialog_question_type i_type, const char *psz_cancel, const char *psz_action1, const char *psz_action2) |
Called when a question dialog needs to be displayed. More... | |
void(* | pf_display_progress )(void *p_data, vlc_dialog_id *p_id, const char *psz_title, const char *psz_text, bool b_indeterminate, float f_position, const char *psz_cancel) |
Called when a progress dialog needs to be displayed. More... | |
void(* | pf_cancel )(void *p_data, vlc_dialog_id *p_id) |
Called when a displayed dialog needs to be cancelled. More... | |
void(* | pf_update_progress )(void *p_data, vlc_dialog_id *p_id, float f_position, const char *psz_text) |
Called when a progress dialog needs to be updated. More... | |
Dialog callbacks to be implemented.
void(* vlc_dialog_cbs::pf_cancel) (void *p_data, vlc_dialog_id *p_id) |
Called when a displayed dialog needs to be cancelled.
The implementation must call vlc_dialog_id_dismiss() to really release the dialog.
p_data | opaque pointer for the callback |
p_id | id of the dialog |
Referenced by dialog_cancel_locked(), dialog_display_login_va(), dialog_display_question_va(), and display_progress_va().
void(* vlc_dialog_cbs::pf_display_login) (void *p_data, vlc_dialog_id *p_id, const char *psz_title, const char *psz_text, const char *psz_default_username, bool b_ask_store) |
Called when a login dialog needs to be displayed.
You can interact with this dialog by calling vlc_dialog_id_post_login() to post an answer or vlc_dialog_id_dismiss() to cancel this dialog.
p_data | opaque pointer for the callback |
p_id | id used to interact with the dialog |
psz_title | title of the dialog |
psz_text | text of the dialog |
psz_default_username | user name that should be set on the user form |
b_ask_store | if true, ask the user if he wants to save the credentials |
Referenced by dialog_display_login_va().
void(* vlc_dialog_cbs::pf_display_progress) (void *p_data, vlc_dialog_id *p_id, const char *psz_title, const char *psz_text, bool b_indeterminate, float f_position, const char *psz_cancel) |
Called when a progress dialog needs to be displayed.
If cancellable (psz_cancel != NULL), you can cancel this dialog by calling vlc_dialog_id_dismiss()
p_data | opaque pointer for the callback |
p_id | id used to interact with the dialog |
psz_title | title of the dialog |
psz_text | text of the dialog |
b_indeterminate | true if the progress dialog is indeterminate |
f_position | initial position of the progress bar (between 0.0 and 1.0) |
psz_cancel | text of the cancel button, if NULL the dialog is not cancellable |
Referenced by display_progress_va().
void(* vlc_dialog_cbs::pf_display_question) (void *p_data, vlc_dialog_id *p_id, const char *psz_title, const char *psz_text, vlc_dialog_question_type i_type, const char *psz_cancel, const char *psz_action1, const char *psz_action2) |
Called when a question dialog needs to be displayed.
You can interact with this dialog by calling vlc_dialog_id_post_action() to post an answer or vlc_dialog_id_dismiss() to cancel this dialog.
p_data | opaque pointer for the callback |
p_id | id used to interact with the dialog |
psz_title | title of the dialog |
psz_text | text of the dialog |
i_type | question type (or severity) of the dialog |
psz_cancel | text of the cancel button |
psz_action1 | text of the first button, if NULL, don't display this button |
psz_action2 | text of the second button, if NULL, don't display this button |
Referenced by dialog_display_question_va().
void(* vlc_dialog_cbs::pf_update_progress) (void *p_data, vlc_dialog_id *p_id, float f_position, const char *psz_text) |
Called when a progress dialog needs to be updated.
p_data | opaque pointer for the callback |
p_id | id of the dialog |
f_position | osition of the progress bar (between 0.0 and 1.0) |
psz_text | new text of the progress dialog |
Referenced by dialog_update_progress(), and display_progress_va().