*
* 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"
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;