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= (const AlertManager &other)
 
AlertManageroperator= (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[email protected]jgoy[email protected][email protected][email protected]gmai[email protected]l.com

Definition at line 23 of file alertmanager.h.

Member Function Documentation

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

availableCountries

Returns
names of all available countries supported

Definition at line 86 of file alertmanager.cpp.

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.

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

inst return a pointer to the global instance

Returns

Definition at line 60 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-2021 The KDE developers.
Generated on Sun Oct 24 2021 23:03:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.