KWeatherCore::AlertManager

Search for usage in LXR

KWeatherCore::AlertManager Class Reference

#include <alertmanager.h>

Public Member Functions

 AlertManager (const AlertManager &other)
 
QList< QStringavailableCountries () const
 
PendingAlertsgetAlerts (const QString &country) const
 
AlertManageroperator= (AlertManager &&other)
 
AlertManageroperator= (const AlertManager &other)
 

Static Public Member Functions

static AlertManagerinst ()
 

Detailed Description

The AlertManager class is intened to get pending weather alerts about a location.

See also
Pendingalerts
Author
Nikunj Goyal nikun.nosp@m.jgoy.nosp@m.al31@.nosp@m.gmai.nosp@m.l.com

Definition at line 23 of file alertmanager.h.

Constructor & Destructor Documentation

◆ AlertManager()

KWeatherCore::AlertManager::AlertManager ( const AlertManager & other)

Definition at line 50 of file alertmanager.cpp.

Member Function Documentation

◆ availableCountries()

QList< QString > KWeatherCore::AlertManager::availableCountries ( ) const

availableCountries

Returns
names of all available countries supported

Definition at line 86 of file alertmanager.cpp.

◆ getAlerts()

PendingAlerts * KWeatherCore::AlertManager::getAlerts ( const QString & country) const

getAlerts

Parameters
countrycountry for which alerts have to be received
Returns
it is the client's responsibility to delete the PendingAlerts afterhand to avoid memory leak

Definition at line 90 of file alertmanager.cpp.

◆ inst()

AlertManager * KWeatherCore::AlertManager::inst ( )
static

inst return a pointer to the global instance

Returns

Definition at line 60 of file alertmanager.cpp.

◆ operator=()

AlertManager & KWeatherCore::AlertManager::operator= ( const AlertManager & other)

Definition at line 54 of file alertmanager.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.