Messagelib

remotecontentinfo.cpp
1/*
2 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "remotecontentinfo.h"
8using namespace MessageViewer;
9RemoteContentInfo::RemoteContentInfo() = default;
10
11RemoteContentInfo::~RemoteContentInfo() = default;
12
13QString RemoteContentInfo::url() const
14{
15 return mUrl;
16}
17
18void RemoteContentInfo::setUrl(const QString &url)
19{
20 mUrl = url;
21}
22
23RemoteContentInfo::RemoteContentInfoStatus RemoteContentInfo::status() const
24{
25 return mStatus;
26}
27
28void RemoteContentInfo::setStatus(RemoteContentInfoStatus status)
29{
30 mStatus = status;
31}
32
33bool RemoteContentInfo::isValid() const
34{
35 return !mUrl.isEmpty() && (mStatus != RemoteContentInfoStatus::Unknown);
36}
37
39{
40 d << "mUrl " << t.url();
41 d << "mStatus " << t.status();
42 return d;
43}
44
45#include "moc_remotecontentinfo.cpp"
The RemoteContentInfo class.
Q_SCRIPTABLE CaptureState status()
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.