File indexing completed on 2025-03-09 04:54:37

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "messageviewer_private_export.h"
0010 #include "remotecontentinfo.h"
0011 #include <QWidget>
0012 class QLineEdit;
0013 namespace MessageViewer
0014 {
0015 class RemoteContentStatusTypeComboBox;
0016 class MESSAGEVIEWER_TESTS_EXPORT RemoteContentWidget : public QWidget
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit RemoteContentWidget(QWidget *parent = nullptr);
0021     ~RemoteContentWidget() override;
0022 
0023     [[nodiscard]] RemoteContentInfo info() const;
0024     void setInfo(const RemoteContentInfo &info);
0025 
0026 Q_SIGNALS:
0027     void updateOkButton(bool enabled);
0028 
0029 private:
0030     void slotTextChanged(const QString &url);
0031     QLineEdit *const mLineEdit;
0032     RemoteContentStatusTypeComboBox *const mStatusComboBox;
0033 };
0034 }