VLC 4.0.0-dev
Loading...
Searching...
No Matches

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.
 
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.
 
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.
 
void(* pf_cancel )(void *p_data, vlc_dialog_id *p_id)
 Called when a displayed dialog needs to be cancelled.
 
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.
 

Detailed Description

Dialog callbacks to be implemented.

Field Documentation

◆ pf_cancel

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.

Parameters
p_dataopaque pointer for the callback
p_idid of the dialog

Referenced by dialog_cancel_locked(), dialog_display_login_va(), dialog_display_question_va(), and display_progress_va().

◆ pf_display_login

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.

Note
to receive this callback, vlc_dialog_cbs.pf_cancel should not be NULL.
Parameters
p_dataopaque pointer for the callback
p_idid used to interact with the dialog
psz_titletitle of the dialog
psz_texttext of the dialog
psz_default_usernameuser name that should be set on the user form
b_ask_storeif true, ask the user if he wants to save the credentials

Referenced by dialog_display_login_va().

◆ pf_display_progress

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()

Note
to receive this callback, vlc_dialog_cbs.pf_cancel and vlc_dialog_cbs.pf_update_progress should not be NULL.
Parameters
p_dataopaque pointer for the callback
p_idid used to interact with the dialog
psz_titletitle of the dialog
psz_texttext of the dialog
b_indeterminatetrue if the progress dialog is indeterminate
f_positioninitial position of the progress bar (between 0.0 and 1.0)
psz_canceltext of the cancel button, if NULL the dialog is not cancellable

Referenced by display_progress_va().

◆ pf_display_question

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.

Note
to receive this callback, vlc_dialog_cbs.pf_cancel should not be NULL.
Parameters
p_dataopaque pointer for the callback
p_idid used to interact with the dialog
psz_titletitle of the dialog
psz_texttext of the dialog
i_typequestion type (or severity) of the dialog
psz_canceltext of the cancel button
psz_action1text of the first button, if NULL, don't display this button
psz_action2text of the second button, if NULL, don't display this button

Referenced by dialog_display_question_va().

◆ pf_update_progress

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.

Parameters
p_dataopaque pointer for the callback
p_idid of the dialog
f_positionosition of the progress bar (between 0.0 and 1.0)
psz_textnew text of the progress dialog

Referenced by dialog_update_progress(), and display_progress_va().


The documentation for this struct was generated from the following file: