You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
599 B
26 lines
599 B
#pragma once
|
|
|
|
#include <QComboBox>
|
|
#include <QDialog>
|
|
|
|
#include "selfdrive/ui/qt/api.h"
|
|
|
|
class RouteListWidget;
|
|
class OneShotHttpRequest;
|
|
|
|
class RoutesDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
RoutesDialog(QWidget *parent);
|
|
QString route();
|
|
|
|
protected:
|
|
void parseDeviceList(const QString &json, bool success, QNetworkReply::NetworkError err);
|
|
void parseRouteList(const QString &json, bool success, QNetworkReply::NetworkError err);
|
|
void fetchRoutes();
|
|
|
|
QComboBox *device_list_;
|
|
QComboBox *period_selector_;
|
|
RouteListWidget *route_list_;
|
|
OneShotHttpRequest *route_requester_;
|
|
};
|
|
|