Files
MapLibreParticleLab/platform/qt/src/timer_impl.hpp
Bruno de Oliveira Abinader 65868b28cc [Qt] Janitor private headers
2016-07-11 17:01:31 +03:00

32 lines
454 B
C++

#pragma once
#include <mbgl/util/timer.hpp>
#include <QObject>
#include <QTimer>
namespace mbgl {
namespace util {
class Timer::Impl : public QObject {
Q_OBJECT
public:
Impl();
void start(uint64_t timeout, uint64_t repeat, std::function<void ()> &&);
void stop();
public slots:
void timerFired();
private:
uint64_t repeat;
std::function<void()> callback;
QTimer timer;
};
} // namespace util
} // namespace mbgl