/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 *
 * 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 __IWSENS_SUBSENSOR_H
#define __IWSENS_SUBSENSOR_H

#ifndef __IWSENS_DATASENSOR_H
#include <iwsens/datasensor.h>
#endif

namespace iwear
{
    namespace sensor
    {
class SensorHandler;
/**
 */
class SubSensor: public DataSensor {
private:
    SubSensor();
protected:
    DataSensor* ds;
    uint32_t ssi;
public:
    SubSensor( SensorHandler*, DataSensor*, uint32_t ssi );

    virtual ~SubSensor();

    /**
     */
    virtual double get_value( void ) const;

    /**
     */
    virtual units get_unit( void ) const;

    /**
     */
    virtual datasensor_type get_datasensor_type( void ) const;

    /**
     * Module requires us to implement this. But we dont have one so just
     * return succes.
     */
    virtual uint32_t activate_power_state( power_state );
};

} // namespace sensor
} // namespace iwear
#endif
