]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/errors.hpp
Qt4: remove bogus vlc_aout.h dependencies
[vlc] / modules / gui / qt4 / dialogs / errors.hpp
index 2f85c94850da46fc632a3d52e40f5efbd2d2be70..dde9f056d641c84742830eb6b8dff063a43cd3e7 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
 
-#ifndef _ERRORS_DIALOG_H_
-#define _ERRORS_DIALOG_H_
+#ifndef QVLC_ERRORS_DIALOG_H_
+#define QVLC_ERRORS_DIALOG_H_ 1
 
 #include "util/qvlcframe.hpp"
 
@@ -30,24 +31,24 @@ class QCheckBox;
 class QGridLayout;
 class QTextEdit;
 
-class ErrorsDialog : public QVLCFrame
+class ErrorsDialog : public QVLCDialog
 {
     Q_OBJECT;
 public:
     static ErrorsDialog * getInstance( intf_thread_t *p_intf )
     {
         if( !instance)
-            instance = new ErrorsDialog( p_intf );
+            instance = new ErrorsDialog( (QWidget *)p_intf->p_sys->p_mi, p_intf );
         return instance;
     }
     virtual ~ErrorsDialog() {};
 
-    void addError( QString, QString );
-    void addWarning( QString, QString );
+    void addError( const QString&, const QString& );
+    /*void addWarning( QString, QString );*/
 private:
-    ErrorsDialog( intf_thread_t * );
+    ErrorsDialog( QWidget *parent, intf_thread_t * );
     static ErrorsDialog *instance;
-    void add( bool, QString, QString );
+    void add( bool, const QString&, const QString& );
 
     QCheckBox *stopShowing;
     QTextEdit *messages;