Messagelib

remotecontentinfo.h
1 /*
2  SPDX-FileCopyrightText: 2020-2021 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  Q_REQUIRED_RESULT QString url() const;
32  void setUrl(const QString &url);
33 
34  Q_REQUIRED_RESULT RemoteContentInfoStatus status() const;
35  void setStatus(MessageViewer::RemoteContentInfo::RemoteContentInfoStatus status);
36 
37  Q_REQUIRED_RESULT bool isValid() const;
38 
39 private:
40  RemoteContentInfoStatus mStatus = RemoteContentInfoStatus::Unknown;
41  QString mUrl;
42 };
43 }
44 Q_DECLARE_TYPEINFO(MessageViewer::RemoteContentInfo, Q_MOVABLE_TYPE);
45 MESSAGEVIEWER_EXPORT QDebug operator<<(QDebug d, const MessageViewer::RemoteContentInfo &t);
The RemoteContentInfo class.
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.