• 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
BBCWeatherService.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 BBCWEATHERSERVICE_H
12 #define BBCWEATHERSERVICE_H
13 
14 #include "AbstractWeatherService.h"
15 
16 #include <QStringList>
17 
18 namespace Marble
19 {
20 
21 class BBCItemGetter;
22 class BBCStation;
23 class GeoDataLatLonAltBox;
24 class StationListParser;
25 
26 class BBCWeatherService : public AbstractWeatherService
27 {
28  Q_OBJECT
29 
30  public:
31  explicit BBCWeatherService( const MarbleModel *model, QObject *parent );
32  ~BBCWeatherService();
33 
34  void setFavoriteItems( const QStringList& favorite );
35 
36  public Q_SLOTS:
37  void getAdditionalItems( const GeoDataLatLonAltBox& box,
38  qint32 number = 10 );
39  virtual void getItem( const QString &id );
40 
41  private Q_SLOTS:
42  void fetchStationList();
43  void createItem( BBCStation station );
44 
45  private:
46  void setupList();
47 
48  QList<BBCStation> m_stationList;
49  bool m_parsingStarted;
50  StationListParser *m_parser;
51  BBCItemGetter *m_itemGetter;
52 };
53 
54 } // namespace Marble
55 
56 #endif // BBCWEATHERSERVICE_H
Marble::BBCWeatherService
Definition: BBCWeatherService.h:26
AbstractWeatherService.h
Marble::BBCWeatherService::BBCWeatherService
BBCWeatherService(const MarbleModel *model, QObject *parent)
Definition: BBCWeatherService.cpp:35
Marble::AbstractWeatherService
Definition: AbstractWeatherService.h:27
Marble::BBCWeatherService::~BBCWeatherService
~BBCWeatherService()
Definition: BBCWeatherService.cpp:44
Marble::StationListParser
Definition: StationListParser.h:28
Marble::BBCWeatherService::setFavoriteItems
void setFavoriteItems(const QStringList &favorite)
Definition: BBCWeatherService.cpp:48
QObject
Marble::BBCWeatherService::getAdditionalItems
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Definition: BBCWeatherService.cpp:60
Marble::BBCWeatherService::getItem
virtual void getItem(const QString &id)
Definition: BBCWeatherService.cpp:70
QString
QList
QStringList
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::BBCStation
Definition: BBCStation.h:24
Marble::BBCItemGetter
Definition: BBCItemGetter.h:29
QObject::parent
QObject * parent() const
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
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