mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-12 08:22:05 +08:00
ec8b21c261
* 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>
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();
|
|
};
|