Messagelib

remotecontentinfo.cpp
1 /*
2  SPDX-FileCopyrightText: 2020-2021 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.
bool isEmpty() const const
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 Nov 28 2021 23:05:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.