File indexing completed on 2024-05-12 16:25:58
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libruqola_private_export.h" 0010 #include "videoconference.h" 0011 #include <QObject> 0012 #include <QPointer> 0013 class RocketChatAccount; 0014 class LIBRUQOLACORE_TESTS_EXPORT VideoConferenceNotificationJob : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit VideoConferenceNotificationJob(QObject *parent = nullptr); 0019 ~VideoConferenceNotificationJob() override; 0020 0021 void start(); 0022 [[nodiscard]] bool canStart() const; 0023 void setRocketChatAccount(RocketChatAccount *account); 0024 0025 [[nodiscard]] VideoConference videoConference() const; 0026 void setVideoConference(const VideoConference &newVideoConference); 0027 0028 Q_SIGNALS: 0029 void acceptVideoConference(); 0030 void rejectVideoConference(); 0031 0032 private: 0033 void inComingCall(); 0034 [[nodiscard]] QString generateText() const; 0035 VideoConference mVideoConference; 0036 QPointer<RocketChatAccount> mRocketChatAccount; 0037 };