/*
   SPDX-FileCopyrightText: 2021-2025 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#pragma once

#include "room.h"
#include <QLabel>

#include "libruqolawidgets_private_export.h"
class LIBRUQOLAWIDGETS_TESTS_EXPORT TeamNameLabel : public QLabel
{
    Q_OBJECT
public:
    explicit TeamNameLabel(QWidget *parent = nullptr);
    ~TeamNameLabel() override;

    void setTeamRoomInfo(const Room::TeamRoomInfo &newTeamNameInfo);

Q_SIGNALS:
    void openTeam(const QByteArray &identifier);

private:
    LIBRUQOLAWIDGETS_NO_EXPORT void slotGoToRoomTeam(const QString &contents);
    Room::TeamRoomInfo mTeamNameInfo;
};
