~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Gestures/AxisVelocityCalculator.h

  • Committer: Michael Zanetti
  • Date: 2016-10-13 11:02:11 UTC
  • mfrom: (2525.1.132 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161013110211-tj2gly2dxaqj5t2e
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "UbuntuGesturesQmlGlobal.h"
25
25
#include <stdint.h>
26
26
#include <QtCore/QObject>
27
 
#include <TimeSource>
 
27
#include <UbuntuGestures/private/timesource_p.h>
28
28
 
29
29
/*
30
30
  Estimates the current velocity of a finger based on recent movement along an axis
68
68
    /*
69
69
      Constructor that takes a TimeSource
70
70
     */
71
 
    AxisVelocityCalculator(const UbuntuGestures::SharedTimeSource &timeSource, QObject *parent = 0);
 
71
    AxisVelocityCalculator(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource, QObject *parent = 0);
72
72
 
73
73
    virtual ~AxisVelocityCalculator();
74
74
 
90
90
    /*
91
91
        Replaces the TimeSource with the given one. Useful for testing purposes.
92
92
     */
93
 
    void setTimeSource(const UbuntuGestures::SharedTimeSource &timeSource);
 
93
    void setTimeSource(const UG_PREPEND_NAMESPACE(SharedTimeSource) &timeSource);
94
94
 
95
95
    /*
96
96
        The minimum amount of samples needed for a velocity calculation.
138
138
    int m_samplesRead; /* index of the oldest sample available. -1 if buffer is empty */
139
139
    int m_samplesWrite; /* index where the next sample will be written */
140
140
 
141
 
    UbuntuGestures::SharedTimeSource m_timeSource;
 
141
    UG_PREPEND_NAMESPACE(SharedTimeSource) m_timeSource;
142
142
 
143
143
    qreal m_trackedPosition;
144
144
};