src/hbcore/gestures/hbvelocitycalculator_p.h
changeset 30 80e4d18b72f5
parent 2 06ff229162e9
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
    28 
    28 
    29 #include "hbglobal.h"
    29 #include "hbglobal.h"
    30 
    30 
    31 class HbPointRecorder;
    31 class HbPointRecorder;
    32 class QPointF;
    32 class QPointF;
    33 class QTime;
       
    34 
    33 
    35 class HB_CORE_PRIVATE_EXPORT HbVelocityCalculator
    34 class HB_CORE_PRIVATE_EXPORT HbVelocityCalculator
    36 {
    35 {
    37 public:
    36 public:
    38     HbVelocityCalculator( const HbPointRecorder& listX, const HbPointRecorder& listY );
    37     HbVelocityCalculator( const HbPointRecorder& listX, const HbPointRecorder& listY );
    39 
    38 
    40     QPointF velocity( const QTime& time ) const;
    39     QPointF velocity( qint64 currentTime ) const;
    41 
    40 
    42 private:
    41 private:
    43     qreal calculate_velocity( const HbPointRecorder& list, const QTime& time ) const;
    42     qreal calculate_velocity( const HbPointRecorder& list, qint64 currentTime ) const;
    44 
    43 
    45     const HbPointRecorder& mListX;
    44     const HbPointRecorder& mListX;
    46     const HbPointRecorder& mListY;
    45     const HbPointRecorder& mListY;
    47 };
    46 };
    48 
    47