Warning, /education/marble/src/bindings/python/sip/RouteRequest.sip is written in an unsupported language. File is not indexed.
0001 // Copyright 2011 Simon Edwards <simon@simonzone.com>
0002
0003 // Generated by twine2
0004
0005 // This program is free software; you can redistribute it and/or modify
0006 // it under the terms of the GNU Library General Public License as
0007 // published by the Free Software Foundation; either version 2, or
0008 // (at your option) any later version.
0009
0010 // This program is distributed in the hope that it will be useful,
0011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0013 // GNU General Public License for more details
0014
0015 // You should have received a copy of the GNU Library General Public
0016 // License along with this program; if not, write to the
0017 // Free Software Foundation, Inc.,
0018 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0019
0020 namespace Marble
0021 {
0022 class RouteRequest : QObject
0023 {
0024 %TypeHeaderCode
0025 #include <routing/RouteRequest.h>
0026 %End
0027
0028 public:
0029 explicit RouteRequest (QObject* parent /TransferThis/ = 0);
0030 ~RouteRequest ();
0031 Marble::GeoDataCoordinates source () const;
0032 Marble::GeoDataCoordinates destination () const;
0033 int size () const;
0034 Marble::GeoDataCoordinates at (int index) const;
0035 void remove (int index);
0036 void clear ();
0037 void addVia (const Marble::GeoDataCoordinates& position);
0038 QPixmap pixmap (int index, int size = -1, int margin = 2) const;
0039 void setName (int index, const QString& name);
0040 QString name (int index) const;
0041 void setVisited (int index, bool visited);
0042 bool visited (int index) const;
0043 void reverse ();
0044 void setRoutingProfile (const Marble::RoutingProfile& profile);
0045 Marble::RoutingProfile routingProfile () const;
0046 signals:
0047 void positionChanged (int index, const Marble::GeoDataCoordinates& position);
0048 void positionAdded (int index);
0049 void positionRemoved (int index);
0050 void routingProfileChanged ();
0051 public:
0052 void append (const Marble::GeoDataCoordinates& coordinates, const QString& name = QString());
0053 void insert (int index, const Marble::GeoDataCoordinates& coordinates, const QString& name = QString());
0054 void setPosition (int index, const Marble::GeoDataCoordinates& position, const QString& name = QString());
0055 };
0056 };