File indexing completed on 2024-12-08 04:34:21

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QWidget>
0010 
0011 #include "libruqolawidgets_private_export.h"
0012 #include "rooms/roomsexportjob.h"
0013 class QDateEdit;
0014 class QComboBox;
0015 class LIBRUQOLAWIDGETS_TESTS_EXPORT ExportMessagesWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit ExportMessagesWidget(QWidget *parent = nullptr);
0020     ~ExportMessagesWidget() override;
0021 
0022     [[nodiscard]] RocketChatRestApi::RoomsExportJob::RoomsExportInfo roomExportInfo() const;
0023 
0024     // Q_SIGNALS:
0025     //    void updateOkButton(bool state);
0026 
0027 private:
0028     LIBRUQOLAWIDGETS_NO_EXPORT void fillFormat();
0029     QDateEdit *const mFromDate;
0030     QDateEdit *const mToDate;
0031     QComboBox *const mFormat;
0032 };