blob: ea22b20974eeb0b7e9bd0c563b78c37da49fe411 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#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
|