/* ====================================================================
 * Copyright (c) 2003-2006, Martin Hauner
 *                          http://subcommander.tigris.org
 *
 * Subcommander is licensed as described in the file doc/COPYING, which
 * you should have received as part of this distribution.
 * ====================================================================
 */

#ifndef _SC_ERRORHANDLER_H
#define _SC_ERRORHANDLER_H

// sc
#include "DialogHandler.h"
namespace sc {
  class Condition;
  class Error;
}


class ErrorHandler : public DialogHandler
{
public:
  ErrorHandler( const sc::Error*, sc::Condition* cond );
  ~ErrorHandler();

  void run( QWidget* parent );

private:
  const sc::Error* _error;
  sc::Condition*   _cond;
};


#endif //  _SC_ERRORHANDLER_H

