File indexing completed on 2024-04-28 04:42:43
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org> 0003 * SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #include "reply.h" 0007 #include "reply_p.h" 0008 0009 using namespace KWeatherCore; 0010 0011 void ReplyPrivate::setError(Reply::Error error, const QString &msg) 0012 { 0013 m_error = error; 0014 m_errorMessage = msg; 0015 } 0016 0017 Reply::Reply(ReplyPrivate *dd, QObject *parent) 0018 : QObject(parent) 0019 , d_ptr(dd) 0020 { 0021 } 0022 0023 Reply::~Reply() = default; 0024 0025 Reply::Error Reply::error() const 0026 { 0027 return d_ptr->m_error; 0028 } 0029 0030 QString Reply::errorMessage() const 0031 { 0032 return d_ptr->m_errorMessage; 0033 } 0034 0035 #include "moc_reply.cpp"