blob: a54abfd8b5b9c39bea0ed2fd206fa7329f5f1a73 (
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 ()>&& cb);
void stop();
public slots:
void timerFired();
private:
uint64_t repeat;
std::function<void()> callback;
QTimer timer;
};
}
}
|