// File: scipioinputmodule.cpp
// Created by: <Joern Reimerdes>
// Created on: 15.04.2005

/**
 * scipioinputmodule.h - is part of the iwear-framework
 * @file
 * $Id: scipioinputmodule.h 1831 2005-06-03 09:38:30Z plasmahh $
 * $Revision: 1831 $
 * $Author: plasmahh $
 * $Date: 2005-06-03 11:38:30 +0200 (Fr, 03 Jun 2005) $
 *
 * 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 __SCIPIOINPUTMODULE_H
#define __SCIPIOINPUTMODULE_H

#ifndef __SCIPIOINPUTTHREAD_H
#include <iwear_input_scipio/scipioinputthread.h>
#endif

#ifndef __INPUTMANAGER_H
#include <iwear_input/inputmanager.h>
#endif

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


using namespace iwear::input;

namespace iwear { 
namespace input {
//    class InputManager;

namespace scipio {

    /** Interface for all ScipioInputModules that will be implemented.
     * The ScipioInputModule implements all features which are needed by 
     * all Scipioinputmodules. 
     * Inheriting classes must add the InputEventTypes to the
     * input_event_types list.
     */
    class ScipioInputModule : public InputModule {
	
    public:

  	/** Creates a new ScipioInputModule. 
   	 * @param input_manager a pointer to the
	 *  input_manager to which the ScipioInputModule should be registered
	 * to.
	 */
	ScipioInputModule(InputManager* input_manager, Configuration& conf);

	/** Destroys the ScipioInputModule.
	 * 
	 */
	virtual ~ScipioInputModule();

    protected:

    private:
	uint32_t activate_power_state(iwear::power_state);

	ScipioInputThread* scipio_input_thread;

	void init_configuration( void );

    };
} //  namespace scipio
} // namespace input
} //namespace iwear

#endif	// __SCIPIOINPUTMODULE_H

