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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataDocument.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3  Copyright (C) 2007 Murad Tagirov <tmurad@gmail.com>
4  Copyright (C) 2009 Patrick Spendrin <ps_ml@gmx.de>
5 
6  This file is part of the KDE project
7 
8  This library is free software you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  aint with this library see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
23 
24 #ifndef MARBLE_GEODATADOCUMENT_H
25 #define MARBLE_GEODATADOCUMENT_H
26 
27 #include <QHash>
28 #include <QMetaType>
29 #include <QVector>
30 
31 #include "geodata_export.h"
32 
33 #include "GeoDataContainer.h"
34 #include "GeoDocument.h"
35 
36 namespace Marble
37 {
38 
39 enum DocumentRole {
40  UnknownDocument,
41  MapDocument,
42  UserDocument,
43  TrackingDocument,
44  BookmarkDocument,
45  SearchResultDocument
46 };
47 
48 
49 class GeoDataStyle;
50 class GeoDataStyleMap;
51 class GeoDataNetworkLinkControl;
52 
53 class GeoDataDocumentPrivate;
54 
64 class GEODATA_EXPORT GeoDataDocument : public GeoDocument,
65  public GeoDataContainer
66 {
67 public:
68  GeoDataDocument();
69  GeoDataDocument( const GeoDataDocument& other );
70  ~GeoDataDocument();
71 
73  virtual bool isGeoDataDocument() const { return true; }
74 
75  DocumentRole documentRole() const;
76  void setDocumentRole( DocumentRole role );
77 
78  QString property() const;
79  void setProperty( QString property );
80 
89  QString fileName() const;
94  void setFileName( const QString &value );
95 
99  QString baseUri() const;
100 
105  void setBaseUri( const QString &baseUri );
106 
110  GeoDataNetworkLinkControl networkLinkControl() const;
111 
115  void setNetworkLinkControl( const GeoDataNetworkLinkControl &networkLinkControl );
116 
121  void addStyle( const GeoDataStyle& style );
122 
127  void removeStyle( const QString& styleId );
128 
133  GeoDataStyle& style( const QString& styleId ) const;
134 
138  QList<GeoDataStyle> styles() const;
139 
144  void addStyleMap( const GeoDataStyleMap& map );
145 
150  void removeStyleMap( const QString& mapId );
151 
156  GeoDataStyleMap& styleMap( const QString& styleId ) const;
157 
161  QList<GeoDataStyleMap> styleMaps() const;
162 
163  // Serialize the Placemark to @p stream
164  virtual void pack( QDataStream& stream ) const;
165  // Unserialize the Placemark from @p stream
166  virtual void unpack( QDataStream& stream );
167 
168 private:
169  GeoDataDocumentPrivate *p() const;
170 };
171 
172 }
173 Q_DECLARE_METATYPE(Marble::GeoDataDocument*)
174 #endif
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
GeoDataContainer.h
Marble::GeoDataContainer
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
Marble::GeoDataStyleMap
a class to map different styles to one style
Definition: GeoDataStyleMap.h:38
Marble::GeoDataDocumentPrivate
Definition: GeoDataDocument_p.h:24
Marble::SearchResultDocument
Definition: GeoDataDocument.h:45
Marble::BookmarkDocument
Definition: GeoDataDocument.h:44
Marble::UnknownDocument
Definition: GeoDataDocument.h:40
Marble::GeoDataStyle
an addressable style group
Definition: GeoDataStyle.h:55
Marble::TrackingDocument
Definition: GeoDataDocument.h:43
Marble::UserDocument
Definition: GeoDataDocument.h:42
GeoDocument.h
Marble::MapDocument
Definition: GeoDataDocument.h:41
Marble::GeoDocument
A shared base class between GeoDataDocument/GeoSourceDocument.
Definition: GeoDocument.h:42
Marble::GeoDataDocument::isGeoDataDocument
virtual bool isGeoDataDocument() const
Provides type information for downcasting a GeoData.
Definition: GeoDataDocument.h:73
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::GeoDataNetworkLinkControl
Definition: GeoDataNetworkLinkControl.h:27
Marble::DocumentRole
DocumentRole
Definition: GeoDataDocument.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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