Marble

RouteItem.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Utku Aydın <[email protected]>
4 //
5 
6 #ifndef ROUTEITEM_H
7 #define ROUTEITEM_H
8 
9 class QString;
10 class QUrl;
11 class QIcon;
12 
13 namespace Marble {
14 
15 class RouteItem {
16 
17 public:
18  RouteItem();
19  RouteItem( const RouteItem &other );
20  ~RouteItem();
21 
22  RouteItem& operator=(const RouteItem &other);
23  bool operator==( const RouteItem &other ) const;
24 
25  QString identifier() const;
26  void setIdentifier( const QString &identifier );
27 
28  QString name() const;
29  void setName( const QString &name );
30 
31  QIcon preview() const;
32  void setPreview(const QIcon &preview );
33 
34  QUrl previewUrl() const;
35  void setPreviewUrl( const QUrl &previewUrl );
36 
37  QString distance() const;
38  void setDistance( const QString &distance );
39 
40  QString duration() const;
41  void setDuration( const QString &duration );
42 
43  bool onCloud() const;
44  void setOnCloud( const bool onCloud );
45 
46 private:
47  class Private;
48  Private *d;
49 };
50 
51 }
52 
53 #endif // ROUTEITEM_H
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
KOSM_EXPORT double distance(const std::vector< const OSM::Node * > &path, Coordinate coord)
Binds a QML item to a specific geodetic location in screen coordinates.
QString name(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.