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

marble

  • Marble
  • WeatherModel
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Marble::WeatherModel Class Reference

#include <WeatherModel.h>

Inheritance diagram for Marble::WeatherModel:
Inheritance graph
[legend]

Public Slots

void downloadDescriptionFileRequested (const QUrl &url)
 
void downloadItemData (const QUrl &url, const QString &type, AbstractDataPluginItem *item)
 
void setMarbleWidget (MarbleWidget *widget)
 
- Public Slots inherited from Marble::AbstractDataPluginModel
void addItemsToList (const QList< AbstractDataPluginItem * > &items)
 
void addItemToList (AbstractDataPluginItem *item)
 
void clear ()
 

Signals

void additionalItemsRequested (const GeoDataLatLonAltBox &, qint32 number)
 
void favoriteItemChanged (const QString &id, bool isFavorite)
 
void parseFileRequested (const QByteArray &file)
 
- Signals inherited from Marble::AbstractDataPluginModel
void favoriteItemsChanged (const QStringList &favoriteItems)
 
void favoriteItemsOnlyChanged ()
 
void itemsUpdated ()
 

Public Member Functions

 WeatherModel (const MarbleModel *marbleModel, QObject *parent)
 
 ~WeatherModel ()
 
void setFavoriteItems (const QStringList &list)
 
void setUpdateInterval (quint32 hours)
 
- Public Member Functions inherited from Marble::AbstractDataPluginModel
 AbstractDataPluginModel (const QString &name, const MarbleModel *marbleModel, QObject *parent=0)
 
virtual ~AbstractDataPluginModel ()
 
QStringList favoriteItems () const
 
QObject * favoritesModel ()
 
AbstractDataPluginItem * findItem (const QString &id) const
 
bool isFavoriteItemsOnly () const
 
bool itemExists (const QString &id) const
 
QList< AbstractDataPluginItem * > items (const ViewportParams *viewport, qint32 number=10)
 
const MarbleModel * marbleModel () const
 
void setFavoriteItemsOnly (bool favoriteOnly)
 
void setItemSettings (QHash< QString, QVariant > itemSettings)
 
QList< AbstractDataPluginItem * > whichItemAt (const QPoint &curpos)
 

Protected Member Functions

void getAdditionalItems (const GeoDataLatLonAltBox &box, qint32 number=10)
 
virtual void getItem (const QString &id)
 
void parseFile (const QByteArray &file)
 
- Protected Member Functions inherited from Marble::AbstractDataPluginModel
void downloadDescriptionFile (const QUrl &url)
 
void downloadItem (const QUrl &url, const QString &type, AbstractDataPluginItem *item)
 
bool fileExists (const QString &fileName) const
 
bool fileExists (const QString &id, const QString &type) const
 
QString generateFilename (const QString &id, const QString &type) const
 
QString generateFilepath (const QString &id, const QString &type) const
 
 MARBLE_DEPRECATED (void downloadItemData(const QUrl &url, const QString &type, AbstractDataPluginItem *item))
 
void registerItemProperties (const QMetaObject &item)
 

Additional Inherited Members

- Properties inherited from Marble::AbstractDataPluginModel
QObject favoritesModel
 

Detailed Description

Definition at line 32 of file WeatherModel.h.

Constructor & Destructor Documentation

WeatherModel::WeatherModel ( const MarbleModel *  marbleModel,
QObject *  parent 
)
explicit

Definition at line 29 of file WeatherModel.cpp.

WeatherModel::~WeatherModel ( )

Definition at line 47 of file WeatherModel.cpp.

Member Function Documentation

void Marble::WeatherModel::additionalItemsRequested ( const GeoDataLatLonAltBox &  ,
qint32  number 
)
signal
void WeatherModel::downloadDescriptionFileRequested ( const QUrl &  url)
slot

Definition at line 111 of file WeatherModel.cpp.

void WeatherModel::downloadItemData ( const QUrl &  url,
const QString &  type,
AbstractDataPluginItem *  item 
)
slot

Downloads the file from url.

item -> addDownloadedFile() will be called when the download is finished. Additionally initialized() items will be added to the item list after the download.

Parameters
The type of the download

Definition at line 68 of file WeatherModel.cpp.

void Marble::WeatherModel::favoriteItemChanged ( const QString &  id,
bool  isFavorite 
)
signal
void WeatherModel::getAdditionalItems ( const GeoDataLatLonAltBox &  box,
qint32  number = 10 
)
protectedvirtual

Managing to get number additional items in box.

This includes generating a url and downloading the corresponding file. This method has to be implemented in a subclass.

Implements Marble::AbstractDataPluginModel.

Definition at line 93 of file WeatherModel.cpp.

void WeatherModel::getItem ( const QString &  id)
protectedvirtual

Retrieve data for a specific item.

Parameters
idItem id of the item to retrieve

Reimplemented from Marble::AbstractDataPluginModel.

Definition at line 99 of file WeatherModel.cpp.

void WeatherModel::parseFile ( const QByteArray &  file)
protectedvirtual

Parse the file and generate items.

The items will be added to the list or the method starts additionally needed downloads. This method has to be implemented in a subclass.

Reimplemented from Marble::AbstractDataPluginModel.

Definition at line 106 of file WeatherModel.cpp.

void Marble::WeatherModel::parseFileRequested ( const QByteArray &  file)
signal
void WeatherModel::setFavoriteItems ( const QStringList &  list)
virtual

Reimplemented from Marble::AbstractDataPluginModel.

Definition at line 51 of file WeatherModel.cpp.

void WeatherModel::setMarbleWidget ( MarbleWidget *  widget)
slot

Definition at line 116 of file WeatherModel.cpp.

void WeatherModel::setUpdateInterval ( quint32  hours)

Definition at line 62 of file WeatherModel.cpp.


The documentation for this class was generated from the following files:
  • WeatherModel.h
  • WeatherModel.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