Messagelib

remotecontentwidget.h
1 /*
2  SPDX-FileCopyrightText: 2021-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_private_export.h"
10 #include "remotecontentinfo.h"
11 #include <QWidget>
12 class QLineEdit;
13 namespace MessageViewer
14 {
15 class RemoteContentStatusTypeComboBox;
16 class MESSAGEVIEWER_TESTS_EXPORT RemoteContentWidget : public QWidget
17 {
18  Q_OBJECT
19 public:
20  explicit RemoteContentWidget(QWidget *parent = nullptr);
21  ~RemoteContentWidget() override;
22 
23  Q_REQUIRED_RESULT RemoteContentInfo info() const;
24  void setInfo(const RemoteContentInfo &info);
25 
26 Q_SIGNALS:
27  void updateOkButton(bool enabled);
28 
29 private:
30  void slotTextChanged(const QString &url);
31  QLineEdit *const mLineEdit;
32  RemoteContentStatusTypeComboBox *const mStatusComboBox;
33 };
34 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.