Search for usage in LXR

KWeatherCore::AlertFeedEntry Class Reference

#include <alertfeedentry.h>


QString area
CAPAlertInfo::Certainty certainty
QDateTime date
CAPAlertInfo::Severity severity
QString summary
QString title
CAPAlertInfo::Urgency urgency

Public Member Functions

 AlertFeedEntry ()
 AlertFeedEntry (AlertFeedEntry &&other)
 AlertFeedEntry (const AlertFeedEntry &other)
const QStringarea () const
const AreaCodeVec & areaCodes () const
PendingCAPCAP () const
CAPAlertInfo::Certainty certainty () const
const QDateTimedate () const
AlertFeedEntryoperator= (AlertFeedEntry &&other)
AlertFeedEntryoperator= (const AlertFeedEntry &other)
const CAPPolygon & polygon () const
void setArea (const QString &area)
void setAreaCodes (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)
CAPAlertInfo::Severity severity () const
const QStringsummary () const
const QStringtitle () const
CAPAlertInfo::Urgency urgency () const

Detailed Description

Class represents single CAP.

This class contains the parsed CAP FEED entry

Han Young

Definition at line 24 of file alertfeedentry.h.

Property Documentation

◆ area

QString KWeatherCore::AlertFeedEntry::area

Definition at line 29 of file alertfeedentry.h.

◆ certainty

CAPAlertInfo::Certainty KWeatherCore::AlertFeedEntry::certainty

Definition at line 32 of file alertfeedentry.h.

◆ date

QDateTime KWeatherCore::AlertFeedEntry::date

Definition at line 33 of file alertfeedentry.h.

◆ severity

CAPAlertInfo::Severity KWeatherCore::AlertFeedEntry::severity

Definition at line 31 of file alertfeedentry.h.

◆ summary

QString KWeatherCore::AlertFeedEntry::summary

Definition at line 28 of file alertfeedentry.h.

◆ title

QString KWeatherCore::AlertFeedEntry::title

Definition at line 27 of file alertfeedentry.h.

◆ urgency

CAPAlertInfo::Urgency KWeatherCore::AlertFeedEntry::urgency

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


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.

it is the client's responsibility to delete the PendingCAP afterward to avoid memory leak

Definition at line 65 of file alertfeedentry.cpp.

◆ certainty()

CAPAlertInfo::Certainty KWeatherCore::AlertFeedEntry::certainty ( ) const


localized, "Unknown" by defaut

Definition at line 57 of file alertfeedentry.cpp.

◆ 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 120 of file alertfeedentry.cpp.

◆ polygon()

const CAPPolygon & KWeatherCore::AlertFeedEntry::polygon ( ) const

area polygon

latitude longitude pairs

Definition at line 75 of file alertfeedentry.cpp.

◆ setArea()

void KWeatherCore::AlertFeedEntry::setArea ( const QString & area)

Definition at line 88 of file alertfeedentry.cpp.

◆ setAreaCodes()

void KWeatherCore::AlertFeedEntry::setAreaCodes ( 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 116 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()

CAPAlertInfo::Severity KWeatherCore::AlertFeedEntry::severity ( ) const


localized, "Unknown" by defaut

Definition at line 53 of file alertfeedentry.cpp.

◆ 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()

CAPAlertInfo::Urgency KWeatherCore::AlertFeedEntry::urgency ( ) const


localized, "Unknown" by defaut

Definition at line 49 of file alertfeedentry.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 12:01:08 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.