KWeatherCore::AlertFeedEntry

Search for usage in LXR

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 QStringarea () const
 
const AreaCodeVec & areaCodes () const
 
PendingCAPCAP () const
 
QString 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 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 QStringsummary () const
 
const QStringtitle () const
 
QString urgency () const
 

Detailed Description

Class represents single CAP.

This class contains the parsed CAP FEED entry

Author
Han Young hanyo.nosp@m.ung@.nosp@m.proto.nosp@m.nmai.nosp@m.l.com

Definition at line 24 of file alertfeedentry.h.

Property Documentation

◆ area

QString KWeatherCore::AlertFeedEntry::area
read

Definition at line 29 of file alertfeedentry.h.

◆ certainty

QString KWeatherCore::AlertFeedEntry::certainty
read

Definition at line 32 of file alertfeedentry.h.

◆ date

QDateTime KWeatherCore::AlertFeedEntry::date
read

Definition at line 33 of file alertfeedentry.h.

◆ severity

QString KWeatherCore::AlertFeedEntry::severity
read

Definition at line 31 of file alertfeedentry.h.

◆ summary

QString KWeatherCore::AlertFeedEntry::summary
read

Definition at line 28 of file alertfeedentry.h.

◆ title

QString KWeatherCore::AlertFeedEntry::title
read

Definition at line 27 of file alertfeedentry.h.

◆ urgency

QString KWeatherCore::AlertFeedEntry::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

certainty

Returns
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 124 of file alertfeedentry.cpp.

◆ polygon()

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

area polygon

Returns
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() [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

severity

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

QString KWeatherCore::AlertFeedEntry::urgency ( ) const

urgency

Returns
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 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.