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
						
					
					
						
							511 B
						
					
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							511 B
						
					
					
				| #include <QLabel>
 | |
| #include <QPushButton>
 | |
| #include <QWidget>
 | |
| 
 | |
| enum ResetMode {
 | |
|   USER_RESET, // user initiated a factory reset from openpilot
 | |
|   RECOVER,    // userdata is corrupt for some reason, give a chance to recover
 | |
| };
 | |
| 
 | |
| class Reset : public QWidget {
 | |
|   Q_OBJECT
 | |
| 
 | |
| public:
 | |
|   explicit Reset(ResetMode mode, QWidget *parent = 0);
 | |
| 
 | |
| private:
 | |
|   QLabel *body;
 | |
|   QPushButton *rejectBtn;
 | |
|   QPushButton *rebootBtn;
 | |
|   QPushButton *confirmBtn;
 | |
|   void doErase();
 | |
|   void startReset();
 | |
| 
 | |
| private slots:
 | |
|   void confirm();
 | |
| };
 | |
| 
 |