#ifndef SYNC_DIALOG_H #define SYNC_DIALOG_H #include #include #include #include "backend.h" class SyncDialog : public QDialog { Q_OBJECT public: SyncDialog(QWidget *parent = nullptr); void setup(Backend *backend); private: void updateLabels(); QPushButton *createButton(const QString &text, int id); void launchSync(); static const int g_symbolCount = 4; static QString g_symbols[g_symbolCount]; QLabel *m_labels[g_symbolCount]; int8_t m_code[g_symbolCount]; QHBoxLayout *m_buttonLayout; Backend *m_backend; private slots: void buttonClicked(); }; #endif // SYNC_DIALOG_H