Warning, /education/marble/src/bindings/python/sip/PositionTracking.sip is written in an unsupported language. File is not indexed.
0001 // Copyright 2010 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 PositionTracking : QObject /Abstract/ 0023 { 0024 %TypeHeaderCode 0025 #include <PositionTracking.h> 0026 %End 0027 0028 public: 0029 ~PositionTracking (); 0030 //ig void setPositionProviderPlugin (PositionProviderPlugin* plugin); 0031 //ig PositionProviderPlugin* positionProviderPlugin (); 0032 QString error () const; 0033 qreal speed () const; 0034 qreal direction () const; 0035 Marble::GeoDataAccuracy accuracy () const; 0036 bool trackVisible () const; 0037 Marble::GeoDataCoordinates currentLocation () const; 0038 //ig PositionProviderStatus status () const; 0039 void setTrackVisible (bool visible); 0040 void clearTrack (); 0041 signals: 0042 void gpsLocation (Marble::GeoDataCoordinates, qreal); 0043 //ig void positionProviderPluginChanged (PositionProviderPlugin* activePlugin); 0044 public: 0045 bool isTrackEmpty () const; 0046 explicit PositionTracking (Marble::GeoDataTreeModel* model); 0047 QDateTime timestamp () const; 0048 qreal length (qreal planetRadius) const; 0049 signals: 0050 void statusChanged (Marble::PositionProviderStatus status); 0051 public: 0052 void readSettings (); 0053 void writeSettings (); 0054 bool saveTrack (const QString& fileName); 0055 }; 0056 };