dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
controllerpage.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef CONTROLLERPAGE_H
30 #define CONTROLLERPAGE_H
31 
32 #include <coreplugin/iboardtype.h>
33 #include <coreplugin/icore.h>
35 #include "setupwizard.h"
37 #include "abstractwizardpage.h"
38 
39 namespace Ui {
40 class ControllerPage;
41 }
42 
44 {
45  Q_OBJECT
46 
47 public:
48  explicit ControllerPage(SetupWizard *wizard, QWidget *parent = nullptr);
50  void initializePage();
51  bool isComplete() const;
52  bool validatePage();
53 
54 private:
55  Ui::ControllerPage *ui;
56  bool anyControllerConnected();
57  void setupDeviceList();
58  void setControllerType(Core::IBoardType *);
59  Core::ConnectionManager *m_connectionManager;
60  TelemetryManager *m_telemetryManager;
61 
62 private slots:
63  void devicesChanged(QLinkedList<Core::DevListItem> devices);
64  void connectionStatusChanged();
65  void connectDisconnect();
66 };
67 
68 #endif // CONTROLLERPAGE_H
The SetupWizard class is the main interface to the setup wizard. It provides selects the sequence of ...
Definition: setupwizard.h:47
ControllerPage(SetupWizard *wizard, QWidget *parent=nullptr)
bool isComplete() const