• 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)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

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)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from Marble::AbstractDataPluginModel
QObject favoritesModel
 
- Properties inherited from QObject
 objectName
 

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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 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