KWeatherCore::AlertFeedEntry
#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.
Property Documentation
◆ area
|
read |
Definition at line 29 of file alertfeedentry.h.
◆ certainty
|
read |
Definition at line 32 of file alertfeedentry.h.
◆ date
|
read |
Definition at line 33 of file alertfeedentry.h.
◆ severity
|
read |
Definition at line 31 of file alertfeedentry.h.
◆ summary
|
read |
Definition at line 28 of file alertfeedentry.h.
◆ title
|
read |
Definition at line 27 of file alertfeedentry.h.
◆ urgency
|
read |
Definition at line 30 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
Definition at line 45 of file alertfeedentry.cpp.
◆ 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 |
◆ 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
Definition at line 61 of file alertfeedentry.cpp.
◆ operator=()
AlertFeedEntry & KWeatherCore::AlertFeedEntry::operator= | ( | const AlertFeedEntry & | other | ) |
Definition at line 124 of file alertfeedentry.cpp.
◆ polygon()
const CAPPolygon & KWeatherCore::AlertFeedEntry::polygon | ( | ) | const |
◆ setArea()
void KWeatherCore::AlertFeedEntry::setArea | ( | const QString & | area | ) |
Definition at line 88 of file alertfeedentry.cpp.
◆ setAreaCodes() [1/2]
void KWeatherCore::AlertFeedEntry::setAreaCodes | ( | AreaCodeVec && | areaCodes | ) |
Definition at line 116 of file alertfeedentry.cpp.
◆ setAreaCodes() [2/2]
void KWeatherCore::AlertFeedEntry::setAreaCodes | ( | const AreaCodeVec & | areaCodes | ) |
Definition at line 112 of file alertfeedentry.cpp.
◆ setCertainty()
void KWeatherCore::AlertFeedEntry::setCertainty | ( | CAPAlertInfo::Certainty | certainty | ) |
Definition at line 96 of file alertfeedentry.cpp.
◆ setDate()
void KWeatherCore::AlertFeedEntry::setDate | ( | const QDateTime & | date | ) |
Definition at line 104 of file alertfeedentry.cpp.
◆ setPolygon()
void KWeatherCore::AlertFeedEntry::setPolygon | ( | CAPPolygon && | polygon | ) |
Definition at line 120 of file alertfeedentry.cpp.
◆ setSeverity()
void KWeatherCore::AlertFeedEntry::setSeverity | ( | CAPAlertInfo::Severity | severity | ) |
Definition at line 100 of file alertfeedentry.cpp.
◆ setSummary()
void KWeatherCore::AlertFeedEntry::setSummary | ( | const QString & | summary | ) |
Definition at line 84 of file alertfeedentry.cpp.
◆ setTitle()
void KWeatherCore::AlertFeedEntry::setTitle | ( | const QString & | title | ) |
Definition at line 80 of file alertfeedentry.cpp.
◆ setUrgency()
void KWeatherCore::AlertFeedEntry::setUrgency | ( | CAPAlertInfo::Urgency | urgency | ) |
Definition at line 92 of file alertfeedentry.cpp.
◆ setUrl()
void KWeatherCore::AlertFeedEntry::setUrl | ( | const QUrl & | url | ) |
Definition at line 108 of file alertfeedentry.cpp.
◆ severity()
QString KWeatherCore::AlertFeedEntry::severity | ( | ) | const |
◆ summary()
const QString & KWeatherCore::AlertFeedEntry::summary | ( | ) | const |
summary of this entry
Definition at line 41 of file alertfeedentry.cpp.
◆ title()
const QString & KWeatherCore::AlertFeedEntry::title | ( | ) | const |
title of this entry
Definition at line 37 of file alertfeedentry.cpp.
◆ urgency()
QString KWeatherCore::AlertFeedEntry::urgency | ( | ) | const |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:42 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.