• 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
 
QString itemType () 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 ()
 
QString toolTip () 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
 

Additional Inherited Members

- Public Types inherited from Marble::MarbleGraphicsItem
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
 
- 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 ()
 
- 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 327 of file WeatherItem.cpp.

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

Definition at line 334 of file WeatherItem.cpp.

Marble::WeatherItem::~WeatherItem ( )

Definition at line 342 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 347 of file WeatherItem.cpp.

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

Reimplemented from Marble::AbstractDataPluginItem.

Definition at line 548 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 431 of file WeatherItem.cpp.

WeatherData Marble::WeatherItem::currentWeather ( ) const

Definition at line 402 of file WeatherItem.cpp.

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

Definition at line 418 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 367 of file WeatherItem.cpp.

QString Marble::WeatherItem::itemType ( ) const
virtual

Returns the type of this specific item.

Implements Marble::AbstractDataPluginItem.

Definition at line 356 of file WeatherItem.cpp.

void Marble::WeatherItem::openBrowser ( )
slot

Definition at line 490 of file WeatherItem.cpp.

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

Implements Marble::AbstractDataPluginItem.

Definition at line 375 of file WeatherItem.cpp.

quint8 Marble::WeatherItem::priority ( ) const

Definition at line 462 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 361 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 407 of file WeatherItem.cpp.

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

Definition at line 423 of file WeatherItem.cpp.

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

Definition at line 485 of file WeatherItem.cpp.

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

Definition at line 467 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 472 of file WeatherItem.cpp.

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

Definition at line 391 of file WeatherItem.cpp.

QString Marble::WeatherItem::stationName ( ) const

Definition at line 386 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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