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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • weather
BBCWeatherItem.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef BBCWEATHERITEM_H
12 #define BBCWEATHERITEM_H
13 
14 #include "WeatherItem.h"
15 
16 class QString;
17 class QUrl;
18 
19 namespace Marble
20 {
21 
22 class BBCWeatherItem : public WeatherItem
23 {
24  Q_OBJECT
25 
26  public:
27  explicit BBCWeatherItem( QObject *parent = 0 );
28  ~BBCWeatherItem();
29 
30  virtual bool request( const QString& type );
31 
32  QString service() const;
33  void addDownloadedFile( const QString& url, const QString& type );
34 
35  QUrl observationUrl() const;
36  QUrl forecastUrl() const;
37 
38  quint32 bbcId() const;
39  void setBbcId( quint32 id );
40 
41  QString creditHtml() const;
42  private:
43  quint32 m_bbcId;
44  bool m_observationRequested;
45  bool m_forecastRequested;
46 };
47 
48 } // namespace Marble
49 
50 #endif // BBCWEATHERITEM_H
Marble::BBCWeatherItem::BBCWeatherItem
BBCWeatherItem(QObject *parent=0)
Definition: BBCWeatherItem.cpp:27
Marble::BBCWeatherItem::service
QString service() const
Returns the provider of the weather information.
Definition: BBCWeatherItem.cpp:55
Marble::BBCWeatherItem::forecastUrl
QUrl forecastUrl() const
Definition: BBCWeatherItem.cpp:84
Marble::BBCWeatherItem::~BBCWeatherItem
~BBCWeatherItem()
Definition: BBCWeatherItem.cpp:34
Marble::BBCWeatherItem::setBbcId
void setBbcId(quint32 id)
Definition: BBCWeatherItem.cpp:72
Marble::BBCWeatherItem::observationUrl
QUrl observationUrl() const
Definition: BBCWeatherItem.cpp:78
Marble::BBCWeatherItem
Definition: BBCWeatherItem.h:22
QObject
QString
QUrl
QObject::parent
QObject * parent() const
Marble::WeatherItem
This is the class painting a weather item on the screen.
Definition: WeatherItem.h:37
Marble::BBCWeatherItem::creditHtml
QString creditHtml() const
Definition: BBCWeatherItem.cpp:90
Marble::BBCWeatherItem::addDownloadedFile
void addDownloadedFile(const QString &url, const QString &type)
Definition: BBCWeatherItem.cpp:60
Marble::BBCWeatherItem::request
virtual bool request(const QString &type)
Test if the item wants to request type again.
Definition: BBCWeatherItem.cpp:38
WeatherItem.h
Marble::BBCWeatherItem::bbcId
quint32 bbcId() const
Definition: BBCWeatherItem.cpp:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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