1 /*****************************************************************************
2 * external.hpp : Dialogs from other LibVLC core and other plugins
3 ****************************************************************************
4 * Copyright (C) 2009 RĂ©mi Denis-Courmont
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
21 #ifndef QVLC_DIALOGS_EXTERNAL_H_
22 #define QVLC_DIALOGS_EXTERNAL_H_ 1
25 #include <vlc_common.h>
26 #include "variables.hpp"
29 class QProgressDialog;
31 class DialogHandler : public QObject
35 friend class QVLCProgressDialog;
38 DialogHandler (intf_thread_t *);
39 ~DialogHandler (void);
46 QVLCPointer progressBar;
48 void progressBarDestroyed (QWidget *);
51 void displayMessage (vlc_object_t *, void *);
52 void requestLogin (vlc_object_t *, void *);
53 void requestAnswer (vlc_object_t *, void *);
54 void startProgressBar (vlc_object_t *, void *);
55 void stopProgressBar (QWidget *);
58 /* Put here instead of .cpp because of MOC */
59 #include <QProgressDialog>
61 class QVLCProgressDialog : public QProgressDialog
65 QVLCProgressDialog (DialogHandler *parent,
66 struct dialog_progress_bar_t *);
67 virtual ~QVLCProgressDialog (void);
70 DialogHandler *handler;
73 static void update (void *, const char *, float);
74 static bool check (void *);
75 static void destroy (void *);
77 void saveCancel (void);
80 void progressed (int);
81 void described (const QString&);
82 void destroyed (void);