File indexing completed on 2024-05-05 03:49:15

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2013 Utku Aydın <utkuaydin34@gmail.com>
0004 //
0005 
0006 #ifndef ROUTEITEM_H
0007 #define ROUTEITEM_H
0008 
0009 class QString;
0010 class QUrl;
0011 class QIcon;
0012 
0013 namespace Marble {
0014 
0015 class RouteItem {
0016 
0017 public:
0018     RouteItem();
0019     RouteItem( const RouteItem &other );
0020     ~RouteItem();
0021 
0022     RouteItem& operator=(const RouteItem &other);
0023     bool operator==( const RouteItem &other ) const;
0024 
0025     QString identifier() const;
0026     void setIdentifier( const QString &identifier );
0027 
0028     QString name() const;
0029     void setName( const QString &name );
0030 
0031     QIcon preview() const;
0032     void setPreview(const QIcon &preview );
0033 
0034     QUrl previewUrl() const;
0035     void setPreviewUrl( const QUrl &previewUrl );
0036 
0037     QString distance() const;
0038     void setDistance( const QString &distance );
0039 
0040     QString duration() const;
0041     void setDuration( const QString &duration );
0042 
0043     bool onCloud() const;
0044     void setOnCloud( const bool onCloud );
0045 
0046 private:
0047     class Private;
0048     Private *d;
0049 };
0050 
0051 }
0052 
0053 #endif // ROUTEITEM_H