File indexing completed on 2024-04-14 04:54:50

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 #include "libruqolacore_export.h"
0008 #include <QObject>
0009 class RocketChatAccount;
0010 class QTimer;
0011 class LIBRUQOLACORE_EXPORT VideoConferenceMessageInfoManager : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit VideoConferenceMessageInfoManager(RocketChatAccount *account, QObject *parent = nullptr);
0016     ~VideoConferenceMessageInfoManager() override;
0017     [[nodiscard]] RocketChatAccount *rocketChatAccount() const;
0018 
0019     void addCallId(const QString &callId);
0020 
0021 private:
0022     LIBRUQOLACORE_NO_EXPORT void slotUpdateMessage();
0023     LIBRUQOLACORE_NO_EXPORT void updateVideoConferenceInfo(const QString &callId);
0024     QStringList mCallIdList;
0025     RocketChatAccount *const mRocketChatAccount;
0026     QTimer *const mTimer;
0027 };