KWeatherCore::AlertFeedEntry
KWeatherCore::AlertFeedEntry Class Reference
#include <alertfeedentry.h>
Properties | |
QString | area |
QString | certainty |
QDateTime | date |
QString | severity |
QString | summary |
QString | title |
QString | urgency |
Public Member Functions | |
AlertFeedEntry () | |
AlertFeedEntry (AlertFeedEntry &&other) | |
AlertFeedEntry (const AlertFeedEntry &other) | |
const QString & | area () const |
const AreaCodeVec & | areaCodes () const |
PendingCAP * | CAP () const |
QString | certainty () const |
const QDateTime & | date () const |
AlertFeedEntry & | operator= (AlertFeedEntry &&other) |
AlertFeedEntry & | operator= (const AlertFeedEntry &other) |
const CAPPolygon & | polygon () const |
void | setArea (const QString &area) |
void | setAreaCodes (AreaCodeVec &&areaCodes) |
void | setAreaCodes (const AreaCodeVec &areaCodes) |
void | setCertainty (CAPAlertInfo::Certainty certainty) |
void | setDate (const QDateTime &date) |
void | setPolygon (CAPPolygon &&polygon) |
void | setSeverity (CAPAlertInfo::Severity severity) |
void | setSummary (const QString &summary) |
void | setTitle (const QString &title) |
void | setUrgency (CAPAlertInfo::Urgency urgency) |
void | setUrl (const QUrl &url) |
QString | severity () const |
const QString & | summary () const |
const QString & | title () const |
QString | urgency () const |
Detailed Description
Class represents single CAP.
This class contains the parsed CAP FEED entry
Definition at line 24 of file alertfeedentry.h.
Constructor & Destructor Documentation
◆ AlertFeedEntry() [1/2]
KWeatherCore::AlertFeedEntry::AlertFeedEntry | ( | ) |
default constructor
Definition at line 27 of file alertfeedentry.cpp.
◆ AlertFeedEntry() [2/2]
KWeatherCore::AlertFeedEntry::AlertFeedEntry | ( | const AlertFeedEntry & | other | ) |
copy constructor
Definition at line 31 of file alertfeedentry.cpp.
Member Function Documentation
◆ area()
const QString& KWeatherCore::AlertFeedEntry::area | ( | ) | const |
area name, for accurate location use @AreaCodes if possible
◆ areaCodes()
const AreaCodeVec & KWeatherCore::AlertFeedEntry::areaCodes | ( | ) | const |
areaCodes
- Returns
- pairs of QString, the first one is code type, ie. {"UGC", "AKZ017 AKZ020 AKZ021 AKZ022 AKZ023"}
Definition at line 71 of file alertfeedentry.cpp.
◆ CAP()
PendingCAP * KWeatherCore::AlertFeedEntry::CAP | ( | ) | const |
CAP, request to download CAP file.
- Returns
- it is the client's responsibility to delete the PendingCAP afterward to avoid memory leak
Definition at line 65 of file alertfeedentry.cpp.
◆ certainty()
QString KWeatherCore::AlertFeedEntry::certainty | ( | ) | const |
certainty
- Returns
- localized, "Unknown" by defaut
◆ date()
const QDateTime& KWeatherCore::AlertFeedEntry::date | ( | ) | const |
could be date of the alert or the date of this message refer to CAP for accurate date see @CAP
◆ polygon()
const CAPPolygon & KWeatherCore::AlertFeedEntry::polygon | ( | ) | const |
◆ severity()
QString KWeatherCore::AlertFeedEntry::severity | ( | ) | const |
severity
- Returns
- localized, "Unknown" by defaut
◆ summary()
const QString& KWeatherCore::AlertFeedEntry::summary | ( | ) | const |
summary of this entry
◆ title()
const QString& KWeatherCore::AlertFeedEntry::title | ( | ) | const |
title of this entry
◆ urgency()
QString KWeatherCore::AlertFeedEntry::urgency | ( | ) | const |
urgency
- Returns
- localized, "Unknown" by defaut
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:54:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:54:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.