mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 20:42:09 +08:00
7ac52e2374
* no outline * disable on qcom for now * fix qt 5.12.8 * cleanup drive stats * widgets cleanup * ssl test * revert that * disable by default Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: ec8b21c261b28d62dd84c2a6fa28bef09f5c8ed0
60 lines
978 B
C++
60 lines
978 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QStackedLayout>
|
|
#include <QWidget>
|
|
|
|
#include "api.hpp"
|
|
|
|
class PairingQRWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PairingQRWidget(QWidget* parent = 0);
|
|
|
|
private:
|
|
QLabel* qrCode;
|
|
void updateQrCode(QString text);
|
|
|
|
private slots:
|
|
void refresh();
|
|
};
|
|
|
|
class PrimeUserWidget : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit PrimeUserWidget(QWidget* parent = 0);
|
|
|
|
private:
|
|
QVBoxLayout* mainLayout;
|
|
QLabel* username;
|
|
QLabel* points;
|
|
CommaApi* api;
|
|
|
|
private slots:
|
|
void replyFinished(QString response);
|
|
};
|
|
|
|
class PrimeAdWidget : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit PrimeAdWidget(QWidget* parent = 0);
|
|
};
|
|
|
|
class SetupWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SetupWidget(QWidget* parent = 0);
|
|
|
|
private:
|
|
QStackedLayout* mainLayout;
|
|
CommaApi* api;
|
|
bool showQr = false;
|
|
|
|
private slots:
|
|
void parseError(QString response);
|
|
void replyFinished(QString response);
|
|
void showQrCode();
|
|
};
|