Messagelib

remotecontentinfo.h
1/*
2 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
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>
11namespace MessageViewer
12{
13/**
14 * @brief The RemoteContentInfo class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class MESSAGEVIEWER_TESTS_EXPORT RemoteContentInfo
18{
19 Q_GADGET
20public:
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
39private:
40 RemoteContentInfoStatus mStatus = RemoteContentInfoStatus::Unknown;
41 QString mUrl;
42};
43}
44Q_DECLARE_TYPEINFO(MessageViewer::RemoteContentInfo, Q_RELOCATABLE_TYPE);
45MESSAGEVIEWER_EXPORT QDebug operator<<(QDebug d, const MessageViewer::RemoteContentInfo &t);
The RemoteContentInfo class.
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.