Files
StarPilot/selfdrive/ui/qt/request_repeater.h
T
Willem Melching 492083a4a8 nav: pull next location while onroad (#21421)
old-commit-hash: 60cc07c62ac5dd8a5cd63312758353695cf040de
2021-06-29 11:08:37 +02:00

16 lines
366 B
C++

#pragma once
#include "selfdrive/common/util.h"
#include "selfdrive/ui/qt/api.h"
#include "selfdrive/ui/ui.h"
class RequestRepeater : public HttpRequest {
public:
RequestRepeater(QObject *parent, const QString &requestURL, const QString &cacheKey = "", int period = 0, bool while_onroad=false);
private:
Params params;
QTimer *timer;
QString prevResp;
};