File indexing completed on 2025-03-09 04:54:37
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "remotecontentinfo.h" 0008 using namespace MessageViewer; 0009 RemoteContentInfo::RemoteContentInfo() = default; 0010 0011 RemoteContentInfo::~RemoteContentInfo() = default; 0012 0013 QString RemoteContentInfo::url() const 0014 { 0015 return mUrl; 0016 } 0017 0018 void RemoteContentInfo::setUrl(const QString &url) 0019 { 0020 mUrl = url; 0021 } 0022 0023 RemoteContentInfo::RemoteContentInfoStatus RemoteContentInfo::status() const 0024 { 0025 return mStatus; 0026 } 0027 0028 void RemoteContentInfo::setStatus(RemoteContentInfoStatus status) 0029 { 0030 mStatus = status; 0031 } 0032 0033 bool RemoteContentInfo::isValid() const 0034 { 0035 return !mUrl.isEmpty() && (mStatus != RemoteContentInfoStatus::Unknown); 0036 } 0037 0038 QDebug operator<<(QDebug d, const MessageViewer::RemoteContentInfo &t) 0039 { 0040 d << "mUrl " << t.url(); 0041 d << "mStatus " << t.status(); 0042 return d; 0043 } 0044 0045 #include "moc_remotecontentinfo.cpp"