qtmobility/plugins/sensors/maemo6/maemo6tapsensor.cpp
changeset 8 71781823f776
parent 5 453da2cfceef
child 11 06b8e2af4411
equal deleted inserted replaced
5:453da2cfceef 8:71781823f776
    59             QObject::connect(static_cast<TapSensorChannelInterface*>(m_sensorInterface), SIGNAL(dataAvailable(const Tap&)), this, SLOT(slotDataAvailable(const Tap&)));
    59             QObject::connect(static_cast<TapSensorChannelInterface*>(m_sensorInterface), SIGNAL(dataAvailable(const Tap&)), this, SLOT(slotDataAvailable(const Tap&)));
    60         else
    60         else
    61             qWarning() << "Unable to initialize tap sensor.";
    61             qWarning() << "Unable to initialize tap sensor.";
    62 
    62 
    63         // metadata
    63         // metadata
       
    64         addDataRate(100, 100); // 100Hz
       
    65         sensor->setDataRate(100);
    64         addOutputRange(0, 9, 1);
    66         addOutputRange(0, 9, 1);
    65         setDescription(QLatin1String("Measures single and double taps and gives tap direction"));
    67         setDescription(QLatin1String("Measures single and double taps and gives tap direction"));
    66 
    68 
    67         m_initDone = true;
    69         m_initDone = true;
    68     }
    70     }