• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • WeatherItem
Public Slots | Signals | Public Member Functions | Properties | List of all members
Marble::WeatherItem Class Referenceabstract

#include <WeatherItem.h>

Inheritance diagram for Marble::WeatherItem:
Inheritance graph
[legend]

Public Slots

void openBrowser ()
 
- Public Slots inherited from Marble::AbstractDataPluginItem
void toggleFavorite ()
 

Signals

void descriptionChanged ()
 
void imageChanged ()
 
void stationNameChanged ()
 
void temperatureChanged ()
 
- Signals inherited from Marble::AbstractDataPluginItem
void favoriteChanged (const QString &id, bool favorite)
 
void idChanged ()
 
void stickyChanged ()
 
void updated ()
 

Public Member Functions

 WeatherItem (QObject *parent=0)
 
 WeatherItem (MarbleWidget *widget, QObject *parent=0)
 
 ~WeatherItem ()
 
QAction * action ()
 
virtual QList< QAction * > actions ()
 
virtual void addDownloadedFile (const QString &url, const QString &type)=0
 
void addForecastWeather (const QList< WeatherData > &forecasts)
 
WeatherData currentWeather () const
 
QString description () const
 
QMap< QDate, WeatherData > forecastWeather () const
 
QString image () const
 
bool initialized () const
 
bool operator< (const AbstractDataPluginItem *other) const
 
quint8 priority () const
 
virtual bool request (const QString &type)
 
virtual QString service () const =0
 
void setCurrentWeather (const WeatherData &weather)
 
void setForecastWeather (const QMap< QDate, WeatherData > &forecasts)
 
void setMarbleWidget (MarbleWidget *widget)
 
void setPriority (quint8 priority)
 
void setSettings (const QHash< QString, QVariant > &settings)
 
void setStationName (const QString &name)
 
QString stationName () const
 
double temperature () const
 
- Public Member Functions inherited from Marble::AbstractDataPluginItem
 AbstractDataPluginItem (QObject *parent=0)
 
virtual ~AbstractDataPluginItem ()
 
qreal addedAngularResolution () const
 
QString id () const
 
bool isFavorite () const
 
bool isSticky () const
 
void setAddedAngularResolution (qreal resolution)
 
virtual void setFavorite (bool favorite)
 
void setId (const QString &id)
 
void setSticky (bool sticky)
 
void setTarget (const QString &target)
 
void setToolTip (const QString &toolTip)
 
QString target () const
 
QString toolTip () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 
- Public Member Functions inherited from Marble::BillboardGraphicsItem
 BillboardGraphicsItem ()
 
Qt::Alignment alignment () const
 
QList< QRectF > boundingRects () const
 
QRectF containsRect (const QPointF &point) const
 
GeoDataCoordinates coordinate () const
 
QList< QPointF > positions () const
 
void setAlignment (Qt::Alignment alignment)
 
void setCoordinate (const GeoDataCoordinates &coordinates)
 
- Public Member Functions inherited from Marble::MarbleGraphicsItem
virtual ~MarbleGraphicsItem ()
 
CacheMode cacheMode () const
 
bool contains (const QPointF &point) const
 
virtual QRectF contentRect () const
 
virtual QSizeF contentSize () const
 
void hide ()
 
AbstractMarbleGraphicsLayout * layout () const
 
bool paintEvent (QPainter *painter, const ViewportParams *viewport)
 
void setCacheMode (CacheMode mode)
 
virtual void setContentSize (const QSizeF &size)
 
void setLayout (AbstractMarbleGraphicsLayout *layout)
 
virtual void setProjection (const ViewportParams *viewport)
 
void setSize (const QSizeF &size)
 
void setVisible (bool visible)
 
void show ()
 
QSizeF size () const
 
bool visible () const
 

Properties

QString description
 
QString image
 
QString station
 
double temperature
 
- Properties inherited from Marble::AbstractDataPluginItem
bool favorite
 
QString identifier
 
bool sticky
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Public Types inherited from Marble::MarbleGraphicsItem
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from Marble::MarbleGraphicsItem
 MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr)
 
virtual bool eventFilter (QObject *object, QEvent *e)
 
virtual void paint (QPainter *painter)
 
void update ()
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Protected Attributes inherited from Marble::MarbleGraphicsItem
MarbleGraphicsItemPrivate *const d
 

Detailed Description

This is the class painting a weather item on the screen.

So it is a subclass of AbstractDataItem.

Definition at line 37 of file WeatherItem.h.

Constructor & Destructor Documentation

Marble::WeatherItem::WeatherItem ( QObject *  parent = 0)
explicit

Definition at line 325 of file WeatherItem.cpp.

Marble::WeatherItem::WeatherItem ( MarbleWidget *  widget,
QObject *  parent = 0 
)
explicit

Definition at line 332 of file WeatherItem.cpp.

Marble::WeatherItem::~WeatherItem ( )

Definition at line 340 of file WeatherItem.cpp.

Member Function Documentation

QAction * Marble::WeatherItem::action ( )
virtual

Returns the action of this specific item.

Reimplemented from Marble::AbstractDataPluginItem.

Definition at line 345 of file WeatherItem.cpp.

QList< QAction * > Marble::WeatherItem::actions ( )
virtual

Reimplemented from Marble::AbstractDataPluginItem.

Definition at line 541 of file WeatherItem.cpp.

virtual void Marble::WeatherItem::addDownloadedFile ( const QString &  url,
const QString &  type 
)
pure virtual

Reimplemented from Marble::AbstractDataPluginItem.

Implemented in Marble::BBCWeatherItem, Marble::FakeWeatherItem, and Marble::GeoNamesWeatherItem.

void Marble::WeatherItem::addForecastWeather ( const QList< WeatherData > &  forecasts)

Adds additional forecasts to the list.

If there are multiple forecasts for one day, it will choose the most recent (as of pubDate).

Definition at line 424 of file WeatherItem.cpp.

WeatherData Marble::WeatherItem::currentWeather ( ) const

Definition at line 395 of file WeatherItem.cpp.

QString Marble::WeatherItem::description ( ) const
void Marble::WeatherItem::descriptionChanged ( )
signal
QMap< QDate, WeatherData > Marble::WeatherItem::forecastWeather ( ) const

Definition at line 411 of file WeatherItem.cpp.

QString Marble::WeatherItem::image ( ) const
void Marble::WeatherItem::imageChanged ( )
signal
bool Marble::WeatherItem::initialized ( ) const
virtual

Implements Marble::AbstractDataPluginItem.

Definition at line 360 of file WeatherItem.cpp.

void Marble::WeatherItem::openBrowser ( )
slot

Definition at line 483 of file WeatherItem.cpp.

bool Marble::WeatherItem::operator< ( const AbstractDataPluginItem *  other) const
virtual

Implements Marble::AbstractDataPluginItem.

Definition at line 368 of file WeatherItem.cpp.

quint8 Marble::WeatherItem::priority ( ) const

Definition at line 455 of file WeatherItem.cpp.

bool Marble::WeatherItem::request ( const QString &  type)
virtual

Test if the item wants to request type again.

Reimplemented in Marble::BBCWeatherItem.

Definition at line 354 of file WeatherItem.cpp.

virtual QString Marble::WeatherItem::service ( ) const
pure virtual

Returns the provider of the weather information.

Implemented in Marble::BBCWeatherItem, Marble::GeoNamesWeatherItem, and Marble::FakeWeatherItem.

void Marble::WeatherItem::setCurrentWeather ( const WeatherData &  weather)

Definition at line 400 of file WeatherItem.cpp.

void Marble::WeatherItem::setForecastWeather ( const QMap< QDate, WeatherData > &  forecasts)

Definition at line 416 of file WeatherItem.cpp.

void Marble::WeatherItem::setMarbleWidget ( MarbleWidget *  widget)

Definition at line 478 of file WeatherItem.cpp.

void Marble::WeatherItem::setPriority ( quint8  priority)

Definition at line 460 of file WeatherItem.cpp.

void Marble::WeatherItem::setSettings ( const QHash< QString, QVariant > &  settings)
virtual

Set the settings of the item.

This is usually called automatically before painting. If you reimplement this it would be useful to check for changes before copying.

Reimplemented from Marble::AbstractDataPluginItem.

Definition at line 465 of file WeatherItem.cpp.

void Marble::WeatherItem::setStationName ( const QString &  name)

Definition at line 384 of file WeatherItem.cpp.

QString Marble::WeatherItem::stationName ( ) const

Definition at line 379 of file WeatherItem.cpp.

void Marble::WeatherItem::stationNameChanged ( )
signal
double Marble::WeatherItem::temperature ( ) const
void Marble::WeatherItem::temperatureChanged ( )
signal

Property Documentation

QString Marble::WeatherItem::description
read

Definition at line 42 of file WeatherItem.h.

QString Marble::WeatherItem::image
read

Definition at line 43 of file WeatherItem.h.

QString Marble::WeatherItem::station
readwrite

Definition at line 41 of file WeatherItem.h.

double Marble::WeatherItem::temperature
read

Definition at line 44 of file WeatherItem.h.


The documentation for this class was generated from the following files:
  • WeatherItem.h
  • WeatherItem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal