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.
		
		
		
		
			
				
					59 lines
				
				1.0 KiB
			
		
		
			
		
	
	
					59 lines
				
				1.0 KiB
			| 
											5 years ago
										 | #pragma once
 | ||
|  | 
 | ||
|  | #include <QLabel>
 | ||
| 
											5 years ago
										 | #include <QStackedWidget>
 | ||
|  | #include <QVBoxLayout>
 | ||
| 
											5 years ago
										 | #include <QWidget>
 | ||
|  | 
 | ||
|  | class PairingQRWidget : public QWidget {
 | ||
|  |   Q_OBJECT
 | ||
|  | 
 | ||
|  | public:
 | ||
|  |   explicit PairingQRWidget(QWidget* parent = 0);
 | ||
|  | 
 | ||
|  | private:
 | ||
|  |   QLabel* qrCode;
 | ||
| 
											4 years ago
										 |   void updateQrCode(const QString &text);
 | ||
| 
											4 years ago
										 |   void showEvent(QShowEvent *event) override;
 | ||
| 
											5 years ago
										 | 
 | ||
|  | private slots:
 | ||
|  |   void refresh();
 | ||
|  | };
 | ||
|  | 
 | ||
|  | class PrimeUserWidget : public QWidget {
 | ||
|  |   Q_OBJECT
 | ||
|  | public:
 | ||
|  |   explicit PrimeUserWidget(QWidget* parent = 0);
 | ||
|  | 
 | ||
|  | private:
 | ||
|  |   QVBoxLayout* mainLayout;
 | ||
|  |   QLabel* points;
 | ||
|  | 
 | ||
|  | private slots:
 | ||
| 
											5 years ago
										 |   void replyFinished(const QString &response);
 | ||
| 
											5 years ago
										 | };
 | ||
|  | 
 | ||
| 
											4 years ago
										 | class PrimeAdWidget : public QFrame {
 | ||
| 
											5 years ago
										 |   Q_OBJECT
 | ||
|  | public:
 | ||
|  |   explicit PrimeAdWidget(QWidget* parent = 0);
 | ||
|  | };
 | ||
|  | 
 | ||
| 
											5 years ago
										 | class SetupWidget : public QFrame {
 | ||
| 
											5 years ago
										 |   Q_OBJECT
 | ||
|  | 
 | ||
|  | public:
 | ||
|  |   explicit SetupWidget(QWidget* parent = 0);
 | ||
|  | 
 | ||
|  | private:
 | ||
| 
											5 years ago
										 |   QStackedWidget* mainLayout;
 | ||
| 
											5 years ago
										 |   PrimeAdWidget *primeAd;
 | ||
|  |   PrimeUserWidget *primeUser;
 | ||
| 
											5 years ago
										 |   bool showQr = false;
 | ||
|  | 
 | ||
|  | private slots:
 | ||
| 
											5 years ago
										 |   void parseError(const QString &response);
 | ||
|  |   void replyFinished(const QString &response);
 | ||
| 
											5 years ago
										 |   void showQrCode();
 | ||
|  | };
 |