17#ifndef MILEAGECALCULATOR_HPP
18#define MILEAGECALCULATOR_HPP
20#include <QElapsedTimer>
Definition of the IMileageCalculator interface.
Interface for calculating the mileage of a vehicle.
double calculateDistance() override
Calculate the distance traveled by the vehicle.
QElapsedTimer m_intervalTimer
QList< QPair< float, qint64 > > m_speedValues
void addSpeed(float speed) override
Add a speed value to the calculator.
~MileageCalculator()=default
MileageCalculator()
Construct a new MileageCalculator object.