#ifndef NETWORKDETAILWIDGET_H
#define NETWORKDETAILWIDGET_H

#include "../models.h"
#include <QWidget>

QT_BEGIN_NAMESPACE
class QLabel;
class QProgressBar;
class QListWidget;
class QPushButton;
QT_END_NAMESPACE

class NetworkDetailWidget : public QWidget
{
  Q_OBJECT

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

  void setNetwork(const Network &network, const QString &currentUserEmail);
  void clear();

signals:
  void addMemberRequested(const QString &networkId, const QString &email);

private:
  QString m_networkId;

  QLabel *m_nameLabel;
  QLabel *m_adminLabel;
  QProgressBar *m_streamBar;
  QLabel *m_streamBarLabel;
  QListWidget *m_membersList;
  QPushButton *m_addMemberBtn;
};

#endif // NETWORKDETAILWIDGET_H
