KWeatherCore::CAPAlertMessage

Search for usage in LXR

KWeatherCore::CAPAlertMessage Class Reference

#include <capalertmessage.h>

Public Types

enum  MessageType {
  UnknownMessageType, MessageType::Alert, MessageType::Update, MessageType::Cancel,
  MessageType::Acknowledge, MessageType::Error
}
 
enum  Scope { UnknownScope, Scope::Public, Scope::Restricted, Scope::Private }
 
enum  Status {
  UnknownStatus, Status::Actual, Status::Exercise, System,
  Status::Test, Status::Draft
}
 

Properties

QString identifier
 
MessageType messageType
 
QString note
 
Scope scope
 
QString sender
 
QDateTime sentTime
 
Status status
 

Public Member Functions

 CAPAlertMessage ()
 
 CAPAlertMessage (CAPAlertMessage &&other)
 
 CAPAlertMessage (const CAPAlertMessage &other)
 
const std::vector< CAPAlertInfo > & alertInfos () const
 
QString identifier () const
 
MessageType messageType () const
 
QString note () const
 
CAPAlertMessageoperator= (CAPAlertMessage &&other)
 
CAPAlertMessageoperator= (const CAPAlertMessage &other)
 
CAPReference ownReference () const
 
const std::vector< CAPReference > & references () const
 
Scope scope () const
 
QString sender () const
 
QDateTime sentTime () const
 
Status status () const
 

Detailed Description

Represents a single CAP Alert Message.

This class contains the information of a parsed CAP alert message.

See also
CAPAlertInfo
https://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2.html $3.2.1
Author
Anjani Kumar anjan.nosp@m.ik01.nosp@m.2@gma.nosp@m.il.c.nosp@m.om

Definition at line 28 of file capalertmessage.h.

Member Enumeration Documentation

◆ MessageType

Enumerator
Alert 

Initial information requiring attention by targeted recipients.

Update 

Updates and supercedes the earlier message(s) identified in references()

Cancel 

Cancels the earlier message(s) identified in references()

Acknowledge 

Acknowledges receipt and acceptance of the message(s) identified in references()

Error 

Indicates rejection of the message(s) identified in references()

Definition at line 49 of file capalertmessage.h.

◆ Scope

Enumerator
Public 

For general dissemination to unrestricted audiences.

Restricted 

For dissemination only to users with a known operational requirement.

Private 

For dissemination only to specified addresses.

Definition at line 58 of file capalertmessage.h.

◆ Status

The code denoting the appropriate handling of the alert message.

Enumerator
Actual 

Actionable by all targeted recipients.

Exercise 

Actionable only by designated exercise participants.

Test 

Technical testing only, all recipients disregard.

Draft 

A preliminary template or draft, not actionable in its current form.

Definition at line 40 of file capalertmessage.h.

Constructor & Destructor Documentation

◆ CAPAlertMessage()

KWeatherCore::CAPAlertMessage::CAPAlertMessage ( )

Default constructor, Status, MsgType, Scope are set to Unknown.

Definition at line 26 of file capalertmessage.cpp.

Member Function Documentation

◆ alertInfos()

const std::vector< CAPAlertInfo > & KWeatherCore::CAPAlertMessage::alertInfos ( ) const

The alert info elements of this alert message.

See also
CAPAlertInfo

Definition at line 64 of file capalertmessage.cpp.

◆ identifier()

QString KWeatherCore::CAPAlertMessage::identifier ( ) const

Unique alert message identifier.

◆ messageType()

MessageType KWeatherCore::CAPAlertMessage::messageType ( ) const

The code denoting the nature of the alert message.

Returns UnknownMsgType if not set.

◆ note()

QString KWeatherCore::CAPAlertMessage::note ( ) const

The text describing the purpose or significance of the alert message.

Relevant for Exercise and Error status.

◆ ownReference()

CAPReference KWeatherCore::CAPAlertMessage::ownReference ( ) const

Reference of this CAP alert message.

See also
references()

Definition at line 72 of file capalertmessage.cpp.

◆ references()

const std::vector< CAPReference > & KWeatherCore::CAPAlertMessage::references ( ) const

References to previous CAP alert messages.

Relevant for Update, Cancel and Ack message types.

Definition at line 68 of file capalertmessage.cpp.

◆ scope()

Scope KWeatherCore::CAPAlertMessage::scope ( ) const

The code denoting the intended distribution of the alert message.

Returns UnknownScope if not set.

◆ sender()

QString KWeatherCore::CAPAlertMessage::sender ( ) const

The identifier of the sender of the alert message.

◆ sentTime()

QDateTime KWeatherCore::CAPAlertMessage::sentTime ( ) const

The time and date of the origination of the alert message.

◆ status()

Status KWeatherCore::CAPAlertMessage::status ( ) const

The code denoting the appropriate handling of the alert message.

Returns UnknownStatus if not set.


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

KDE's Doxygen guidelines are available online.