Messagelib

remotecontentinfo.cpp
1 /*
2  SPDX-FileCopyrightText: 2020-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "remotecontentinfo.h"
8 using namespace MessageViewer;
9 RemoteContentInfo::RemoteContentInfo() = default;
10 
11 RemoteContentInfo::~RemoteContentInfo() = default;
12 
13 QString RemoteContentInfo::url() const
14 {
15  return mUrl;
16 }
17 
18 void RemoteContentInfo::setUrl(const QString &url)
19 {
20  mUrl = url;
21 }
22 
23 RemoteContentInfo::RemoteContentInfoStatus RemoteContentInfo::status() const
24 {
25  return mStatus;
26 }
27 
28 void RemoteContentInfo::setStatus(RemoteContentInfoStatus status)
29 {
30  mStatus = status;
31 }
32 
33 bool 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 }
The RemoteContentInfo class.
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
bool isEmpty() const const
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.