• 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
GeoNamesWeatherItem.cpp
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 #include "GeoNamesWeatherItem.h"
12 
13 using namespace Marble;
14 
15 GeoNamesWeatherItem::GeoNamesWeatherItem( QObject *parent )
16  : WeatherItem( parent )
17 {
18 }
19 
20 GeoNamesWeatherItem::~GeoNamesWeatherItem()
21 {
22 }
23 
24 void GeoNamesWeatherItem::addDownloadedFile( const QString& url, const QString& type )
25 {
26  Q_UNUSED( url )
27  Q_UNUSED( type )
28 }
29 
30 QString GeoNamesWeatherItem::service() const
31 {
32  return QString( "GeoNames" );
33 }
34 
35 QString GeoNamesWeatherItem::creditHtml() const
36 {
37  return tr( "Supported by <a href=\"http://www.geonames.org/export/JSON-webservices.html\" target=\"_BLANK\">geonames.org</a>" );
38 }
39 
40 #include "GeoNamesWeatherItem.moc"
Marble::GeoNamesWeatherItem::creditHtml
QString creditHtml() const
Definition: GeoNamesWeatherItem.cpp:35
QObject::tr
QString tr(const char *sourceText, const char *disambiguation, int n)
Marble::GeoNamesWeatherItem::addDownloadedFile
void addDownloadedFile(const QString &url, const QString &type)
Definition: GeoNamesWeatherItem.cpp:24
QObject
Marble::GeoNamesWeatherItem::~GeoNamesWeatherItem
~GeoNamesWeatherItem()
Definition: GeoNamesWeatherItem.cpp:20
QString
Marble::GeoNamesWeatherItem::service
QString service() const
Returns the provider of the weather information.
Definition: GeoNamesWeatherItem.cpp:30
GeoNamesWeatherItem.h
Marble::GeoNamesWeatherItem::GeoNamesWeatherItem
GeoNamesWeatherItem(QObject *parent=0)
Definition: GeoNamesWeatherItem.cpp:15
Marble::WeatherItem
This is the class painting a weather item on the screen.
Definition: WeatherItem.h:37
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