• 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
  • opencachingcom
OpenCachingComModel.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 2012 Anders Lund <anders@alweb.dk>
9 //
10 
11 #ifndef OPENCACHINGCOMMODEL_H
12 #define OPENCACHINGCOMMODEL_H
13 
14 #include "AbstractDataPluginModel.h"
15 #include "GeoDataLatLonAltBox.h"
16 
17 #include <QDateTime>
18 
19 // Please note and respect that this key is for use ONLY within this plugin.
20 #define AUTHKEY "mJg2Q5fD3qczP7M8"
21 
22 namespace Marble
23 {
24 
25 class MarbleModel;
26 
27 class OpenCachingComItem;
28 
29 namespace {
30 // The maximum number of items we want to show on the screen.
31 const quint32 numberOfItemsOnScreen = 100;
32 }
33 
34 class OpenCachingComModel : public AbstractDataPluginModel
35 {
36  Q_OBJECT
37 
38 public:
39  explicit OpenCachingComModel( const MarbleModel *marbleModel, QObject *parent = 0 );
40  ~OpenCachingComModel();
41 
42 
44  void fetchData(const QString& url, const QString &type, OpenCachingComItem *item);
45 
47  const GeoDataCoordinates home() const;
48 
49 protected:
54  virtual void getAdditionalItems( const GeoDataLatLonAltBox& box,
55  qint32 number = numberOfItemsOnScreen );
56 
61  void parseFile( const QByteArray& file );
62 
63 private:
64  GeoDataLatLonAltBox m_previousbox;
65 };
66 
67 }
68 
69 #endif // OPENCACHINGCOMMODEL_H
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::OpenCachingComItem
Definition: OpenCachingComItem.h:32
AbstractDataPluginModel.h
QByteArray
Marble::OpenCachingComModel::OpenCachingComModel
OpenCachingComModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: OpenCachingComModel.cpp:27
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
QObject
Marble::OpenCachingComModel
Definition: OpenCachingComModel.h:34
Marble::OpenCachingComModel::home
const GeoDataCoordinates home() const
home location
Definition: OpenCachingComModel.cpp:117
QString
Marble::OpenCachingComModel::~OpenCachingComModel
~OpenCachingComModel()
Definition: OpenCachingComModel.cpp:52
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::OpenCachingComModel::fetchData
void fetchData(const QString &url, const QString &type, OpenCachingComItem *item)
Fetch a file for a cache.
Definition: OpenCachingComModel.cpp:112
GeoDataLatLonAltBox.h
Marble::OpenCachingComModel::parseFile
void parseFile(const QByteArray &file)
Parses the file which getAdditionalItems downloads and prepares the data for usage.
Definition: OpenCachingComModel.cpp:91
Marble::OpenCachingComModel::getAdditionalItems
virtual void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=numberOfItemsOnScreen)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: OpenCachingComModel.cpp:56
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