/* ====================================================================
 * Copyright (c) 2003-2006, 2008  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_SCPARAMEVENT_H
#define _SC_SCPARAMEVENT_H

// sc
#include "CustomEvents.h"
#include "../commands/ScParamTypes.h"
#include "util/Error.h"

// qt
#include <QtCore/QEvent>


class ScParamEvent : public QCustomEvent
{
public:
  ScParamEvent( ScParamPtr param, const ScErrorPtr err );
  virtual ~ScParamEvent();

  ScParam* getParam() const;
  const sc::Error* getError() const;

private:
  ScParamPtr _param;
  ScErrorPtr _error;
};

#endif //  _SC_SCPARAMEVENT_H
