/**
 * inputmodule.h - is part of the iwear-framework
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 * In particular this file is part of the Framework Input Library
 *
 * The iWear Framework is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation as in version 2 of the License.

 * 
 * The iWear Framework is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __INPUTEVENT_H
#define __INPUTEVENT_H

#ifndef __INPUTENUMS_H
#include <iwear_input/inputenums.h>
#endif

#ifndef __INPUTMODULE_H
#include <iwear_input/inputmodule.h>
#endif

#include <iwear/debugstream.h>
#include <iwear/eventbase.h>
#include <iwear/functor.h>
#include <iwear/uid.h>
#include <stdint.h>

using namespace iwear;
using namespace iwear::input;

namespace iwear { 
namespace input {
    /** Forward declatation of InputModule. */
    class InputModule;

    /** The InputEvent will encapsulate all Functor Objects which
     * should be called by the EventDispatcher.
     * @author: Jörn Reimerdes
     * @inherits The class inhertis from the template class Event
     * which ist typed with the InputFunctor class.
     */
    class InputEvent : public Event<InputFunctor> {

    public:

	/** Creates a new InputEvent.
	 * 
	 */
	InputEvent(InputFunctor& input_functor, uid& input_module_uid);


	/** Destroys the InputEvent */
	virtual ~InputEvent(void){
	}
	
	/**
	 * Dispatch
	 */
	virtual void dispatch(void);

	/** TODO: Find out what this schould do.
	 * Is triggered
	 */
	virtual bool is_triggered(void);



    protected:
	
	/** The InputModule which has called the functor. */
	// InputModule* input_module;

	/**
	 * Reference of the functor which should be called.
	 */
	InputFunctor& input_functor;

	/** The uid of the InputModule which has fired the event. */
	uid& input_module_uid;

    private:
        
    };
} // namespace input
} //namespace iwear

#endif	// __INPUTEVENT_H

