| 1 | #cxx . . $ `<file>/src/ConnectDialog.h`/ifndef CONNECTDIALOG_HH |
| 2 | #define CONNECTDIALOG_HHcxx . . $ `src/ConnectDialog.h:2:9`! |
| 3 | |
| 4 | #include "OpenMSXConnection.h"cxx . . $ `<file>/src/OpenMSXConnection.h`/ |
| 5 | #include "ui_ConnectDialog.h"cxx . . $ `<file>/derived/src/ui_ConnectDialog.h`/ |
| 6 | #include <QDialog> |
| 7 | #include <QList> |
| 8 | #include <memory> |
| 9 | #include <vector> |
| 10 | |
| 11 | class QStringcxx . . $ QString#; |
| 12 | class ConnectionInfoRequestcxx . . $ ConnectionInfoRequest#; |
| 13 | |
| 14 | class ConnectDialogcxx . . $ ConnectDialog# : public QDialogcxx . . $ QDialog# |
| 15 | { |
| 16 | Q_OBJECTcxx . . $ ConnectDialog#QPrivateSignal# |
| 17 | public: |
| 18 | static stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<OpenMSXConnectioncxx . . $ OpenMSXConnection#> getConnectioncxx . . $ ConnectDialog#getConnection(9b2344118b04506e).(QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 19 | |
| 20 | private: |
| 21 | ConnectDialogcxx . . $ ConnectDialog#ConnectDialog(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent); |
| 22 | ~cxx . . $ ConnectDialog#`~ConnectDialog`(ced63f7c635d850d).ConnectDialogcxx . . $ ConnectDialog#() override; |
| 23 | |
| 24 | void clearcxx . . $ ConnectDialog#clear(49f6e7a06ebc5aa8).(); |
| 25 | void connectionOkcxx . . $ ConnectDialog#connectionOk(a1ca1cb98e356a15).(OpenMSXConnectioncxx . . $ OpenMSXConnection#& connection, |
| 26 | const QStringcxx . . $ QString#& title); |
| 27 | void connectionBadcxx . . $ ConnectDialog#connectionBad(b9dca5a207e4253a).(OpenMSXConnectioncxx . . $ OpenMSXConnection#& connection); |
| 28 | |
| 29 | void timerEventcxx . . $ ConnectDialog#timerEvent(b9e57d1150f23bf5).(QTimerEventcxx . . $ QTimerEvent# *event) override; |
| 30 | |
| 31 | void on_connectButton_clickedcxx . . $ ConnectDialog#on_connectButton_clicked(49f6e7a06ebc5aa8).(); |
| 32 | void on_rescanButton_clickedcxx . . $ ConnectDialog#on_rescanButton_clicked(49f6e7a06ebc5aa8).(); |
| 33 | |
| 34 | private: |
| 35 | int delaycxx . . $ ConnectDialog#delay.; |
| 36 | Uicxx . . $ Ui/::ConnectDialogcxx . . $ Ui/ConnectDialog# uicxx . . $ ConnectDialog#ui.; |
| 37 | using OpenMSXConnectionscxx . . $ ConnectDialog#OpenMSXConnections# = stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<OpenMSXConnectioncxx . . $ OpenMSXConnection#>>; |
| 38 | OpenMSXConnectionscxx . . $ ConnectDialog#OpenMSXConnections# pendingConnectionscxx . . $ ConnectDialog#pendingConnections.; |
| 39 | OpenMSXConnectionscxx . . $ ConnectDialog#OpenMSXConnections# confirmedConnectionscxx . . $ ConnectDialog#confirmedConnections.; |
| 40 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<OpenMSXConnectioncxx . . $ OpenMSXConnection#> resultcxx . . $ ConnectDialog#result.; |
| 41 | QListcxx . . $ QList#<ConnectionInfoRequestcxx . . $ ConnectionInfoRequest#*> connectionInfoscxx . . $ ConnectDialog#connectionInfos.; |
| 42 | |
| 43 | friend class ConnectionInfoRequestcxx . . $ ConnectionInfoRequest#; |
| 44 | }; |
| 45 | |
| 46 | // Command handler to get initial info from new openMSX connections |
| 47 | |
| 48 | class ConnectionInfoRequestcxx . . $ ConnectionInfoRequest# : public QObjectcxx . . $ QObject#, private CommandBasecxx . . $ CommandBase# |
| 49 | { |
| 50 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 51 | public: |
| 52 | ConnectionInfoRequestcxx . . $ ConnectionInfoRequest#ConnectionInfoRequest(2be82e0c2bffd3e4).(ConnectDialogcxx . . $ ConnectDialog#& dialog, OpenMSXConnectioncxx . . $ OpenMSXConnection#& connection); |
| 53 | |
| 54 | QStringcxx . . $ QString# getCommandcxx . . $ ConnectionInfoRequest#getCommand(6ef7b6c27b00b43d).() const override; |
| 55 | void replyOkcxx . . $ ConnectionInfoRequest#replyOk(3520e46b33348bf6). (const QStringcxx . . $ QString#& message) override; |
| 56 | void replyNokcxx . . $ ConnectionInfoRequest#replyNok(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) override; |
| 57 | void cancelcxx . . $ ConnectionInfoRequest#cancel(49f6e7a06ebc5aa8).() override; |
| 58 | |
| 59 | private: |
| 60 | void terminatecxx . . $ ConnectionInfoRequest#terminate(49f6e7a06ebc5aa8).(); |
| 61 | |
| 62 | private: |
| 63 | ConnectDialogcxx . . $ ConnectDialog#& dialogcxx . . $ ConnectionInfoRequest#dialog.; |
| 64 | OpenMSXConnectioncxx . . $ OpenMSXConnection#& connectioncxx . . $ ConnectionInfoRequest#connection.; |
| 65 | enum Statecxx . . $ ConnectionInfoRequest#State# { GET_MACHINEcxx . . $ ConnectionInfoRequest#GET_MACHINE., GET_TITLEcxx . . $ ConnectionInfoRequest#GET_TITLE., DONEcxx . . $ ConnectionInfoRequest#DONE. } statecxx . . $ ConnectionInfoRequest#state.; |
| 66 | QStringcxx . . $ QString# titlecxx . . $ ConnectionInfoRequest#title.; |
| 67 | }; |
| 68 | |
| 69 | #endif |