VLC 4.0.0-dev
dialog.c File Reference
Include dependency graph for dialog.c:

Data Structures

struct  vlc_dialog_provider
 
struct  dialog_answer
 
struct  dialog
 
struct  vlc_dialog_id
 
struct  dialog_i11e_context
 

Enumerations

enum  dialog_type { VLC_DIALOG_ERROR , VLC_DIALOG_LOGIN , VLC_DIALOG_QUESTION , VLC_DIALOG_PROGRESS }
 

Functions

static vlc_dialog_providerget_dialog_provider (vlc_object_t *p_obj, bool b_check_interact)
 
static void dialog_id_release (vlc_dialog_id *p_id)
 
int libvlc_InternalDialogInit (libvlc_int_t *p_libvlc)
 
static void dialog_cancel_locked (vlc_dialog_provider *p_provider, vlc_dialog_id *p_id)
 
static vlc_dialog_iddialog_add_locked (vlc_dialog_provider *p_provider, enum dialog_type i_type)
 
static void dialog_remove_locked (vlc_dialog_provider *p_provider, vlc_dialog_id *p_id)
 
static void dialog_clear_all_locked (vlc_dialog_provider *p_provider)
 
void libvlc_InternalDialogClean (libvlc_int_t *p_libvlc)
 
void vlc_dialog_provider_set_callbacks (vlc_object_t *p_obj, const vlc_dialog_cbs *p_cbs, void *p_data)
 Register callbacks to handle VLC dialogs. More...
 
void vlc_dialog_provider_set_error_callback (vlc_object_t *p_obj, vlc_dialog_error_cbs p_cbs, void *p_data)
 Register callbacks to handle VLC error messages. More...
 
static void dialog_wait_interrupted (void *p_data)
 
static int dialog_wait (vlc_dialog_provider *p_provider, vlc_dialog_id *p_id, enum dialog_type i_type, struct dialog_answer *p_answer)
 
static int dialog_display_error_va (vlc_dialog_provider *p_provider, const char *psz_title, const char *psz_fmt, va_list ap)
 
int vlc_dialog_display_error_va (vlc_object_t *p_obj, const char *psz_title, const char *psz_fmt, va_list ap)
 Sends an error message. More...
 
int vlc_dialog_display_error (vlc_object_t *p_obj, const char *psz_title, const char *psz_fmt,...)
 Sends an error message. More...
 
static int dialog_display_login_va (vlc_dialog_provider *p_provider, vlc_dialog_id **pp_id, const char *psz_default_username, bool b_ask_store, const char *psz_title, const char *psz_fmt, va_list ap)
 
int vlc_dialog_wait_login_va (vlc_object_t *p_obj, char **ppsz_username, char **ppsz_password, bool *p_store, const char *psz_default_username, const char *psz_title, const char *psz_fmt, va_list ap)
 Requests an user name and a password. More...
 
int vlc_dialog_wait_login (vlc_object_t *p_obj, char **ppsz_username, char **ppsz_password, bool *p_store, const char *psz_default_username, const char *psz_title, const char *psz_fmt,...)
 Requests an user name and a password. More...
 
static int dialog_display_question_va (vlc_dialog_provider *p_provider, vlc_dialog_id **pp_id, vlc_dialog_question_type i_type, const char *psz_cancel, const char *psz_action1, const char *psz_action2, const char *psz_title, const char *psz_fmt, va_list ap)
 
int vlc_dialog_wait_question_va (vlc_object_t *p_obj, vlc_dialog_question_type i_type, const char *psz_cancel, const char *psz_action1, const char *psz_action2, const char *psz_title, const char *psz_fmt, va_list ap)
 Asks a total (Yes/No/Cancel) question. More...
 
int vlc_dialog_wait_question (vlc_object_t *p_obj, vlc_dialog_question_type i_type, const char *psz_cancel, const char *psz_action1, const char *psz_action2, const char *psz_title, const char *psz_fmt,...)
 Asks a total (Yes/No/Cancel) question. More...
 
static int display_progress_va (vlc_dialog_provider *p_provider, vlc_dialog_id **pp_id, bool b_indeterminate, float f_position, const char *psz_cancel, const char *psz_title, const char *psz_fmt, va_list ap)
 
vlc_dialog_idvlc_dialog_display_progress_va (vlc_object_t *p_obj, bool b_indeterminate, float f_position, const char *psz_cancel, const char *psz_title, const char *psz_fmt, va_list ap)
 Display a progress dialog. More...
 
vlc_dialog_idvlc_dialog_display_progress (vlc_object_t *p_obj, bool b_indeterminate, float f_position, const char *psz_cancel, const char *psz_title, const char *psz_fmt,...)
 Display a progress dialog. More...
 
static int dialog_update_progress (vlc_object_t *p_obj, vlc_dialog_id *p_id, float f_value, char *psz_text)
 
int vlc_dialog_update_progress (vlc_object_t *p_obj, vlc_dialog_id *p_id, float f_value)
 Update the position of the progress dialog. More...
 
int vlc_dialog_update_progress_text_va (vlc_object_t *p_obj, vlc_dialog_id *p_id, float f_value, const char *psz_fmt, va_list ap)
 Update the position and the message of the progress dialog. More...
 
int vlc_dialog_update_progress_text (vlc_object_t *p_obj, vlc_dialog_id *p_id, float f_value, const char *psz_fmt,...)
 Update the position and the message of the progress dialog. More...
 
void vlc_dialog_release (vlc_object_t *p_obj, vlc_dialog_id *p_id)
 Release the dialog id returned by vlc_dialog_display_progress() More...
 
bool vlc_dialog_is_cancelled (vlc_object_t *p_obj, vlc_dialog_id *p_id)
 Return true if the dialog id is cancelled. More...
 
void vlc_dialog_id_set_context (vlc_dialog_id *p_id, void *p_context)
 Associate an opaque pointer with the dialog id. More...
 
void * vlc_dialog_id_get_context (vlc_dialog_id *p_id)
 Return the opaque pointer associated with the dialog id. More...
 
static int dialog_id_post (vlc_dialog_id *p_id, struct dialog_answer *p_answer)
 
int vlc_dialog_id_post_login (vlc_dialog_id *p_id, const char *psz_username, const char *psz_password, bool b_store)
 Post a login answer. More...
 
int vlc_dialog_id_post_action (vlc_dialog_id *p_id, int i_action)
 Post a question answer. More...
 
int vlc_dialog_id_dismiss (vlc_dialog_id *p_id)
 Dismiss a dialog. More...
 
void vlc_dialog_provider_set_ext_callback (vlc_object_t *p_obj, vlc_dialog_ext_update_cb pf_update, void *p_data)
 Register a callback for VLC extension dialog. More...
 
int vlc_ext_dialog_update (vlc_object_t *p_obj, extension_dialog_t *p_ext_dialog)
 

Enumeration Type Documentation

◆ dialog_type

Enumerator
VLC_DIALOG_ERROR 
VLC_DIALOG_LOGIN 
VLC_DIALOG_QUESTION 
VLC_DIALOG_PROGRESS 

Function Documentation

◆ dialog_add_locked()

◆ dialog_cancel_locked()

◆ dialog_clear_all_locked()

◆ dialog_display_error_va()

static int dialog_display_error_va ( vlc_dialog_provider p_provider,
const char *  psz_title,
const char *  psz_fmt,
va_list  ap 
)
static

◆ dialog_display_login_va()

static int dialog_display_login_va ( vlc_dialog_provider p_provider,
vlc_dialog_id **  pp_id,
const char *  psz_default_username,
bool  b_ask_store,
const char *  psz_title,
const char *  psz_fmt,
va_list  ap 
)
static

◆ dialog_display_question_va()

static int dialog_display_question_va ( vlc_dialog_provider p_provider,
vlc_dialog_id **  pp_id,
vlc_dialog_question_type  i_type,
const char *  psz_cancel,
const char *  psz_action1,
const char *  psz_action2,
const char *  psz_title,
const char *  psz_fmt,
va_list  ap 
)
static

◆ dialog_id_post()

◆ dialog_id_release()

◆ dialog_remove_locked()

◆ dialog_update_progress()

◆ dialog_wait()

◆ dialog_wait_interrupted()

◆ display_progress_va()

◆ get_dialog_provider()

◆ libvlc_InternalDialogClean()

◆ libvlc_InternalDialogInit()