• 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
GeoNamesWeatherService.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 2011 Valery Kharitonov <kharvd@gmail.com>
9 //
10 
11 #ifndef GEONAMESWEATHERSERVICE_H
12 #define GEONAMESWEATHERSERVICE_H
13 
14 #include "AbstractWeatherService.h"
15 #include "WeatherData.h"
16 
17 class QScriptValue;
18 
19 namespace Marble
20 {
21 
22 class GeoNamesWeatherService : public AbstractWeatherService
23 {
24  Q_OBJECT
25 
26  public:
27  explicit GeoNamesWeatherService( const MarbleModel *model, QObject *parent );
28  ~GeoNamesWeatherService();
29 
30  public Q_SLOTS:
31  void getAdditionalItems( const GeoDataLatLonAltBox& box,
32  qint32 number = 10 );
33  void getItem( const QString &id );
34  void parseFile( const QByteArray& file );
35 
36  private:
37  AbstractDataPluginItem* parse( const QScriptValue &value );
38  static void setupHashes();
39 
40  static QHash<QString, WeatherData::WeatherCondition> dayConditions;
41  static QVector<WeatherData::WindDirection> windDirections;
42 };
43 
44 } // namespace Marble
45 
46 #endif // GEONAMESWEATHERSERVICE_H
Marble::GeoNamesWeatherService
Definition: GeoNamesWeatherService.h:22
Marble::GeoNamesWeatherService::~GeoNamesWeatherService
~GeoNamesWeatherService()
Definition: GeoNamesWeatherService.cpp:42
QByteArray
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
AbstractWeatherService.h
QScriptValue
Marble::AbstractWeatherService
Definition: AbstractWeatherService.h:27
QHash
QObject
Marble::GeoNamesWeatherService::getItem
void getItem(const QString &id)
Definition: GeoNamesWeatherService.cpp:75
QString
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QVector
Marble::GeoNamesWeatherService::parseFile
void parseFile(const QByteArray &file)
Definition: GeoNamesWeatherService.cpp:96
QObject::parent
QObject * parent() const
Marble::GeoNamesWeatherService::getAdditionalItems
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Definition: GeoNamesWeatherService.cpp:46
WeatherData.h
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
Marble::GeoNamesWeatherService::GeoNamesWeatherService
GeoNamesWeatherService(const MarbleModel *model, QObject *parent)
Definition: GeoNamesWeatherService.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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