/**
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 * In particular this file is part of the Framework Input
 *
 * 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
 */

//#include <iostream>

#ifndef __IOWARRIORINPUTFUNCTOR_H
#define __IOWARRIORINPUTFUNCTOR_H

#ifndef __IOWFUNCTOR_H
#include <iwear_iowarrior/iowfunctor.h>
#endif

#ifndef __DEBUGSTREAM_H
#include <iwear/debugstream.h>
#endif

#ifndef __UTILITY_H
#include <iwear/utility.h>
#endif

#ifndef __SIGNALINPUTDATA_H
#include <iwear_input/signalinputdata.h>
#endif

using namespace std;
using namespace iwear::iowarrior;

//IWearIOWarrior iow;

namespace iwear{
namespace input{
namespace iowarrior{

/** Forward declaration of IOWarriorInputModule. */
class IOWarriorInputModule;

class IOWarriorInputFunctor: public IOWFunctor { /*{{{*/

public:

    IOWarriorInputFunctor(IOWarriorInputModule* io_warrior_input_module);

    virtual ~IOWarriorInputFunctor(void);

    virtual void on_event(switch_mode sm, switch_event se, 
			  button_mode bm, button_event be);
private:

    IOWarriorInputModule* io_warrior_input_module;

    /** The event which is used by the IOWarrior for SignalInputEvents.
     */
    SignalInputData signal_input_data;
}; /*}}}*/

} // iowarrior
} // input
} // iwear
#endif


