File indexing completed on 2024-12-08 04:34:11
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "conferenceinfodialog.h" 0008 #include "conferenceinfowidget.h" 0009 #include <KLocalizedString> 0010 #include <QDialogButtonBox> 0011 #include <QVBoxLayout> 0012 0013 ConferenceInfoDialog::ConferenceInfoDialog(RocketChatAccount *account, QWidget *parent) 0014 : QDialog(parent) 0015 , mConferenceInfoWidget(new ConferenceInfoWidget(account, this)) 0016 { 0017 setWindowTitle(i18nc("@title:window", "Conference Call Information")); 0018 auto mainLayout = new QVBoxLayout(this); 0019 mainLayout->setObjectName(QStringLiteral("mainLayout")); 0020 0021 mConferenceInfoWidget->setObjectName(QStringLiteral("mConferenceInfoWidget")); 0022 mainLayout->addWidget(mConferenceInfoWidget); 0023 0024 auto button = new QDialogButtonBox(QDialogButtonBox::Close, this); 0025 button->setObjectName(QStringLiteral("button")); 0026 mainLayout->addWidget(button); 0027 connect(button, &QDialogButtonBox::rejected, this, &ConferenceInfoDialog::accept); 0028 connect(button, &QDialogButtonBox::accepted, this, &ConferenceInfoDialog::reject); 0029 } 0030 0031 ConferenceInfoDialog::~ConferenceInfoDialog() = default; 0032 0033 void ConferenceInfoDialog::initializeInfo() 0034 { 0035 mConferenceInfoWidget->initializeInfo(); 0036 } 0037 0038 QString ConferenceInfoDialog::conferenceId() const 0039 { 0040 return mConferenceInfoWidget->conferenceId(); 0041 } 0042 0043 void ConferenceInfoDialog::setConferenceId(const QString &newConferenceId) 0044 { 0045 mConferenceInfoWidget->setConferenceId(newConferenceId); 0046 } 0047 0048 #include "moc_conferenceinfodialog.cpp"