#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>

QT_BEGIN_NAMESPACE
class QLabel;
class QLineEdit;
class QListWidget;
class QPushButton;
class QStackedWidget;
QT_END_NAMESPACE

class SettingsDialog : public QDialog
{
  Q_OBJECT

public:
  explicit SettingsDialog(QWidget *parent = nullptr);

  void setAuthLabel(const QString &text);

signals:
  void signOutRequested();
  void createNetworkRequested(const QString &name);

private:
  void buildUi();

  QListWidget *m_listWidget;
  QStackedWidget *m_stackedWidget;
  QLabel *m_authLabel;
  QPushButton *m_signOutButton;
  QLineEdit *m_networkNameEdit;
  QPushButton *m_createNetworkButton;
};

#endif // SETTINGSDIALOG_H
