#define DIALOG_PSZ_INPUT_OK_CANCEL 0x08
#define DIALOG_BLOCKING_ERROR 0x10
#define DIALOG_NONBLOCKING_ERROR 0x20
-#define DIALOG_WARNING 0x40
#define DIALOG_USER_PROGRESS 0x80
#define DIALOG_INTF_PROGRESS 0x100
#define intf_UserFatal( a, b, c, d, e... ) __intf_UserFatal( VLC_OBJECT(a),b,c,d, ## e )
VLC_EXPORT( int, __intf_UserFatal,( vlc_object_t*, bool, const char*, const char*, ...) LIBVLC_FORMAT( 4, 5 ) );
-#define intf_UserWarn( a, c, d, e... ) __intf_UserWarn( VLC_OBJECT(a),c,d, ## e )
-VLC_EXPORT( int, __intf_UserWarn,( vlc_object_t*, const char*, const char*, ...) LIBVLC_FORMAT( 3, 4 ) );
#define intf_UserLoginPassword( a, b, c, d, e... ) __intf_UserLoginPassword( VLC_OBJECT(a),b,c,d,e)
VLC_EXPORT( int, __intf_UserLoginPassword,( vlc_object_t*, const char*, const char*, char **, char **) );
#define intf_UserYesNo( a, b, c, d, e, f ) __intf_UserYesNo( VLC_OBJECT(a),b,c, d, e, f )
[[[[VLCMain sharedInstance] getInteractionList] getErrorPanel]
addError: o_title withMsg: o_description];
}
- else if( p_dialog->i_flags & DIALOG_WARNING )
- {
- msg_Dbg( p_intf, "addition to non-blocking warning panel received" );
- [[[[VLCMain sharedInstance] getInteractionList] getErrorPanel]
- addWarning: o_title withMsg: o_description];
- }
else if( p_dialog->i_flags & DIALOG_YES_NO_CANCEL )
{
msg_Dbg( p_intf, "yes-no-cancel-dialog requested" );
add( true, title, text );
}
-void ErrorsDialog::addWarning( QString title, QString text )
+/*void ErrorsDialog::addWarning( QString title, QString text )
{
add( false, title, text );
-}
+}*/
void ErrorsDialog::add( bool error, QString title, QString text )
{
virtual ~ErrorsDialog() {};
void addError( QString, QString );
- void addWarning( QString, QString );
+ /*void addWarning( QString, QString );*/
private:
ErrorsDialog( QWidget *parent, intf_thread_t * );
static ErrorsDialog *instance;
qfu( p_dialog->psz_title ), qfu( p_dialog->psz_description ) );
i_ret = QMessageBox::AcceptRole;
}
- else if( p_dialog->i_flags & DIALOG_WARNING )
- {
- if( config_GetInt( p_intf, "qt-error-dialogs" ) != 0 )
- ErrorsDialog::getInstance( p_intf )->addWarning(
- qfu( p_dialog->psz_title ),qfu( p_dialog->psz_description ) );
- i_ret = QMessageBox::AcceptRole;
- }
else if( p_dialog->i_flags & DIALOG_YES_NO_CANCEL )
{
p_dialog->i_status = SENT_DIALOG;
return DialogFireForget( p_new );
}
-/**
- * Helper function to send a warning, which is always shown non-blocking
- *
- * \param p_this Parent vlc_object
- * \param psz_title Title for the dialog
- * \param psz_format The message to display
- * \return VLC_SUCCESS or VLC_EGENERIC
- */
-int __intf_UserWarn( vlc_object_t *p_this,
- const char *psz_title,
- const char *psz_format, ... )
-{
- va_list args;
- DIALOG_INIT( ONEWAY, VLC_EGENERIC );
-
- p_new->psz_title = strdup( psz_title );
- FORMAT_DESC;
-
- p_new->i_flags = DIALOG_WARNING;
-
- return DialogFireForget( p_new );
-}
-
/**
* Helper function to ask a yes-no-cancel question
*
intf_UserHide
__intf_UserLoginPassword
__intf_UserStringInput
-__intf_UserWarn
__intf_UserYesNo
IsUTF8
libvlc_InternalAddIntf