marble
#include <WeatherModel.h>
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
|
explicit |
Definition at line 29 of file WeatherModel.cpp.
WeatherModel::~WeatherModel | ( | ) |
Definition at line 47 of file WeatherModel.cpp.
Member Function Documentation
|
signal |
|
slot |
Definition at line 111 of file WeatherModel.cpp.
|
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.
|
signal |
|
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.
|
protectedvirtual |
Retrieve data for a specific item.
- Parameters
-
id Item id of the item to retrieve
Reimplemented from Marble::AbstractDataPluginModel.
Definition at line 99 of file WeatherModel.cpp.
|
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.
|
signal |
|
virtual |
Reimplemented from Marble::AbstractDataPluginModel.
Definition at line 51 of file WeatherModel.cpp.
|
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:
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.