• 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
  • routing
RoutingProfile.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 2010 Niko Sams <niko.sams@gmail.com>
9 // Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org>
10 //
11 
12 #ifndef MARBLE_ROUTINGPROFILE_H
13 #define MARBLE_ROUTINGPROFILE_H
14 
15 #include "marble_export.h"
16 
17 #include <QString>
18 #include <QHash>
19 #include <QVariant>
20 
21 namespace Marble
22 {
23 
24 class MARBLE_EXPORT RoutingProfile {
25  Q_PROPERTY(QString name READ name WRITE setName)
26  Q_PROPERTY(TransportType transportType READ transportType WRITE setTransportType)
27 
28 public:
29  enum TransportType {
30  Motorcar,
31  Bicycle,
32  Pedestrian
33  };
34 
35  explicit RoutingProfile( const QString &name = QString() );
36 
37  QString name() const;
38 
39  void setName( const QString &name );
40 
41  const QHash<QString, QHash<QString, QVariant> >& pluginSettings() const;
42 
43  QHash<QString, QHash<QString, QVariant> >& pluginSettings();
44 
45  void setTransportType( TransportType transportType );
46 
47  TransportType transportType() const;
48 
49  bool operator==( const RoutingProfile &other ) const;
50 
51 private:
52  QString m_name;
53  //icon
54  QHash<QString, QHash<QString, QVariant> > m_pluginSettings;
55 
56  TransportType m_transportType;
57 };
58 
59 }
60 
61 #endif
Marble::RoutingProfile
Definition: RoutingProfile.h:24
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::RoutingProfile::TransportType
TransportType
Definition: RoutingProfile.h:29
marble_export.h
Marble::RoutingProfile::Motorcar
Definition: RoutingProfile.h:30
Marble::RoutingProfile::Bicycle
Definition: RoutingProfile.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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