Messagelib

remotecontentinfo.h
1 /*
2  SPDX-FileCopyrightText: 2020-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 <QDebug>
11 namespace MessageViewer
12 {
13 /**
14  * @brief The RemoteContentInfo class
15  * @author Laurent Montel <[email protected]>
16  */
17 class MESSAGEVIEWER_TESTS_EXPORT RemoteContentInfo
18 {
19  Q_GADGET
20 public:
21  enum class RemoteContentInfoStatus {
22  Unknown,
23  Blocked,
24  Authorized,
25  };
26  Q_ENUM(RemoteContentInfoStatus)
27 
30 
31  [[nodiscard]] QString url() const;
32  void setUrl(const QString &url);
33 
34  [[nodiscard]] RemoteContentInfoStatus status() const;
35  void setStatus(MessageViewer::RemoteContentInfo::RemoteContentInfoStatus status);
36 
37  [[nodiscard]] bool isValid() const;
38 
39 private:
40  RemoteContentInfoStatus mStatus = RemoteContentInfoStatus::Unknown;
41  QString mUrl;
42 };
43 }
44 Q_DECLARE_TYPEINFO(MessageViewer::RemoteContentInfo, Q_RELOCATABLE_TYPE);
45 MESSAGEVIEWER_EXPORT QDebug operator<<(QDebug d, const MessageViewer::RemoteContentInfo &t);
The RemoteContentInfo class.
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 03:55:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.