KWeatherCore

pendingcap.h
1/*
2 * SPDX-FileCopyrightText: 2021 Han Young <hanyoung@protonmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#pragma once
7
8#include "reply.h"
9
10class QNetworkReply;
11
12namespace KWeatherCore
13{
14class CAPAlertMessage;
15class PendingCAPPrivate;
16/**
17 * @short The PendingAlerts class contains the reply to an asynchronous
18 * CAP request.
19 *
20 * @see AlertEntry
21 *
22 * @author Han Young <hanyoung@protonmail.com>
23 */
24class KWEATHERCORE_EXPORT PendingCAP : public Reply
25{
26 Q_OBJECT
27public:
28 ~PendingCAP() override;
29
30 /**
31 * value pointer to the shared alerts data
32 * the pointer is nullptr until finished() raised
33 * @return
34 */
35 CAPAlertMessage value() const;
36
37private:
38 friend class AlertFeedEntry;
39 explicit PendingCAP(QNetworkReply *reply, QObject *parent = nullptr);
40 Q_DECLARE_PRIVATE(PendingCAP)
41};
42}
Class represents single CAP.
Represents a single CAP Alert Message.
The PendingAlerts class contains the reply to an asynchronous CAP request.
Definition pendingcap.h:25
Base class for all asynchronous jobs.
Definition reply.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 12:02:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.