• 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
  • photo
PhotoPluginModel.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 2009 Bastian Holst <bastianholst@gmx.de>
9 // Copyright 2012 Mohammed Nafees <nafees.technocool@gmail.com>
10 //
11 
12 #ifndef PHOTOPLUGINMODEL_H
13 #define PHOTOPLUGINMODEL_H
14 
15 #include "AbstractDataPluginModel.h"
16 
17 namespace Marble
18 {
19 
20 class MarbleWidget;
21 
22 const quint32 numberOfImagesPerFetch = 15;
23 
24 class PhotoPluginModel : public AbstractDataPluginModel
25 {
26  Q_OBJECT
27 
28  public:
29  explicit PhotoPluginModel( const MarbleModel *marbleModel, QObject *parent = 0 );
30 
31  static QUrl generateUrl( const QString& service,
32  const QString& method,
33  const QHash<QString,QString>& options );
34 
35  void setMarbleWidget( MarbleWidget* widget );
36 
37  void setLicenseValues( const QString &licenses );
38 
39  protected:
44  void getAdditionalItems( const GeoDataLatLonAltBox& box,
45  qint32 number = 10 );
46 
52  void parseFile( const QByteArray& file );
53 
54  private:
55  MarbleWidget *m_marbleWidget;
56 
57  QString m_licenses;
58 };
59 
60 }
61 
62 #endif //PHOTOPLUGINMODEL_H
Marble::PhotoPluginModel
Definition: PhotoPluginModel.h:24
AbstractDataPluginModel.h
QByteArray
Marble::PhotoPluginModel::parseFile
void parseFile(const QByteArray &file)
The reimplementation has to parse the file and should generate items.
Definition: PhotoPluginModel.cpp:127
Marble::numberOfImagesPerFetch
const quint32 numberOfImagesPerFetch
Definition: PanoramioModel.h:19
Marble::PhotoPluginModel::getAdditionalItems
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: PhotoPluginModel.cpp:71
Marble::AbstractDataPluginModel
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
Marble::AbstractDataPluginModel::marbleModel
const MarbleModel * marbleModel() const
Definition: AbstractDataPluginModel.cpp:269
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
QHash< QString, QString >
QObject
Marble::PhotoPluginModel::setMarbleWidget
void setMarbleWidget(MarbleWidget *widget)
Definition: PhotoPluginModel.cpp:152
QString
Marble::PhotoPluginModel::generateUrl
static QUrl generateUrl(const QString &service, const QString &method, const QHash< QString, QString > &options)
Definition: PhotoPluginModel.cpp:42
QUrl
Marble::PhotoPluginModel::PhotoPluginModel
PhotoPluginModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: PhotoPluginModel.cpp:36
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::PhotoPluginModel::setLicenseValues
void setLicenseValues(const QString &licenses)
Definition: PhotoPluginModel.cpp:157
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
QObject::parent
QObject * parent() const
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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