KWeatherCore

reply.cpp
1/*
2 * SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 * SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5
6#include "reply.h"
7#include "reply_p.h"
8
9using namespace KWeatherCore;
10
11void ReplyPrivate::setError(Reply::Error error, const QString &msg)
12{
13 m_error = error;
14 m_errorMessage = msg;
15}
16
17Reply::Reply(ReplyPrivate *dd, QObject *parent)
18 : QObject(parent)
19 , d_ptr(dd)
20{
21}
22
23Reply::~Reply() = default;
24
26{
27 return d_ptr->m_error;
28}
29
31{
32 return d_ptr->m_errorMessage;
33}
34
35#include "moc_reply.cpp"
QString errorMessage() const
Error message of the job.
Definition reply.cpp:30
Error error() const
Error state of the job.
Definition reply.cpp:25
Error
Possible error states of the job.
Definition reply.h:30
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.