diff options
Diffstat (limited to 'examples/positioning/logfilepositionsource')
10 files changed, 0 insertions, 757 deletions
diff --git a/examples/positioning/logfilepositionsource/CMakeLists.txt b/examples/positioning/logfilepositionsource/CMakeLists.txt deleted file mode 100644 index b9064aea..00000000 --- a/examples/positioning/logfilepositionsource/CMakeLists.txt +++ /dev/null @@ -1,54 +0,0 @@ -# Generated from logfilepositionsource.pro. - -cmake_minimum_required(VERSION 3.16) -project(logfilepositionsource LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/positioning/logfilepositionsource") - -find_package(Qt6 COMPONENTS Positioning) -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(logfilepositionsource - clientapplication.cpp clientapplication.h - logfilepositionsource.cpp logfilepositionsource.h - main.cpp -) -set_target_properties(logfilepositionsource PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(logfilepositionsource PRIVATE - Qt::Core - Qt::Positioning - Qt::Widgets -) - - -# Resources: -set(logfile_resource_files - "simplelog.txt" -) - -qt6_add_resources(logfilepositionsource "logfile" - PREFIX - "/" - FILES - ${logfile_resource_files} -) - -install(TARGETS logfilepositionsource - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/positioning/logfilepositionsource/clientapplication.cpp b/examples/positioning/logfilepositionsource/clientapplication.cpp deleted file mode 100644 index 1dca07af..00000000 --- a/examples/positioning/logfilepositionsource/clientapplication.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include <QtCore> -#include <QTextEdit> - -#include "logfilepositionsource.h" -#include "clientapplication.h" - -ClientApplication::ClientApplication(QWidget *parent) - : QMainWindow(parent) -{ - textEdit = new QTextEdit; - setCentralWidget(textEdit); - - LogFilePositionSource *source = new LogFilePositionSource(this); - connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)), - this, SLOT(positionUpdated(QGeoPositionInfo))); - - source->startUpdates(); -} - -void ClientApplication::positionUpdated(const QGeoPositionInfo &info) -{ - textEdit->append(QString("Position updated: Date/time = %1, Coordinate = %2").arg(info.timestamp().toString()).arg(info.coordinate().toString())); -} diff --git a/examples/positioning/logfilepositionsource/clientapplication.h b/examples/positioning/logfilepositionsource/clientapplication.h deleted file mode 100644 index 4ffd5486..00000000 --- a/examples/positioning/logfilepositionsource/clientapplication.h +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef CLIENTAPPLICATION_H -#define CLIENTAPPLICATION_H - -#include <QMainWindow> - -QT_BEGIN_NAMESPACE -class QGeoPositionInfo; -class QTextEdit; -QT_END_NAMESPACE - -class ClientApplication : public QMainWindow -{ - Q_OBJECT -public: - ClientApplication(QWidget *parent = 0); - -private slots: - void positionUpdated(const QGeoPositionInfo &info); - -private: - QTextEdit *textEdit; -}; - - -#endif diff --git a/examples/positioning/logfilepositionsource/doc/src/logfilepositionsource.qdoc b/examples/positioning/logfilepositionsource/doc/src/logfilepositionsource.qdoc deleted file mode 100644 index 53eb274a..00000000 --- a/examples/positioning/logfilepositionsource/doc/src/logfilepositionsource.qdoc +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:FDL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Free Documentation License Usage -** Alternatively, this file may be used under the terms of the GNU Free -** Documentation License version 1.3 as published by the Free Software -** Foundation and appearing in the file included in the packaging of -** this file. Please review the following information to ensure -** the GNU Free Documentation License version 1.3 requirements -** will be met: https://www.gnu.org/licenses/fdl-1.3.html. -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/*! -\example logfilepositionsource -\title Log File Position Source (C++) -\ingroup qtpositioning-examples - -\brief Logfile Position Source shows how to create and work with a custom - position source. It can be useful for simulating GPS data, or when the - data is received in some custom format. - -\include examples-run.qdocinc - -\section1 Creating custom Position Source - -In this example, the data is read from a text file, \e simplelog.txt. The file -specifies position data using a simple text format: it contains one position -update per line, where each line contains a date/time, a latitude and a -longitude, separated by spaces. The date/time is in ISO 8601 format and the -latitude and longitude are in degrees decimal format. -Here is an excerpt from \e simplelog.txt: - -\code -2009-08-24T22:25:01 -27.576082 153.092415 -2009-08-24T22:25:02 -27.576223 153.092530 -2009-08-24T22:25:03 -27.576364 153.092648 -\endcode - -We create a custom \c LogFilePositionSource class, which derives from -\l QGeoPositionInfoSource. It reads position data from the file and distributes -it via the \l {QGeoPositionInfoSource::}{positionUpdated()} signal. - -The resulting time and position information is then displayed on the screen as -simple text in date/time and latitude/longitude format. - -Here is the definition of the \c LogFilePositionSource class: - -\quotefromfile logfilepositionsource/logfilepositionsource.h -\skipto class LogFilePositionSource -\printuntil }; - -The main methods overrided by the subclass are: - -\list - \li \l{QGeoPositionInfoSource::startUpdates()}{startUpdates()}: called by client applications - to start regular position updates. - \li \l{QGeoPositionInfoSource::stopUpdates()}{stopUpdates()}: called by client applications to - stop regular position updates. - \li \l{QGeoPositionInfoSource::requestUpdate()}{requestUpdate()}: called by client applications - to request a single update, with a specified timeout. -\endlist - -When a position update is available, the subclass emits the -\l{QGeoPositionInfoSource::positionUpdated()}{positionUpdated()} signal. - -Here are the key methods in the class implementation: - -\quotefromfile logfilepositionsource/logfilepositionsource.cpp -\skipto LogFilePositionSource::LogFilePositionSource -\printuntil /^\}/ -\skipto LogFilePositionSource::startUpdates -\printuntil /^\}/ -\skipto LogFilePositionSource::stopUpdates -\printuntil /^\}/ -\skipto LogFilePositionSource::requestUpdate -\printuntil /^\}/ -\printuntil LogFilePositionSource::readNextPosition -\printuntil /^\}/ -*/ diff --git a/examples/positioning/logfilepositionsource/logfile.qrc b/examples/positioning/logfilepositionsource/logfile.qrc deleted file mode 100644 index 61213949..00000000 --- a/examples/positioning/logfilepositionsource/logfile.qrc +++ /dev/null @@ -1,5 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>simplelog.txt</file> - </qresource> -</RCC> diff --git a/examples/positioning/logfilepositionsource/logfilepositionsource.cpp b/examples/positioning/logfilepositionsource/logfilepositionsource.cpp deleted file mode 100644 index 31bb0cc3..00000000 --- a/examples/positioning/logfilepositionsource/logfilepositionsource.cpp +++ /dev/null @@ -1,136 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include <QtCore> - -#include "logfilepositionsource.h" - -LogFilePositionSource::LogFilePositionSource(QObject *parent) - : QGeoPositionInfoSource(parent), - logFile(new QFile(this)), - timer(new QTimer(this)) -{ - connect(timer, SIGNAL(timeout()), this, SLOT(readNextPosition())); - - logFile->setFileName(":/simplelog.txt"); - if (!logFile->open(QIODevice::ReadOnly)) - qWarning() << "Error: cannot open source file" << logFile->fileName(); -} - -QGeoPositionInfo LogFilePositionSource::lastKnownPosition(bool /*fromSatellitePositioningMethodsOnly*/) const -{ - return lastPosition; -} - -LogFilePositionSource::PositioningMethods LogFilePositionSource::supportedPositioningMethods() const -{ - return AllPositioningMethods; -} - -int LogFilePositionSource::minimumUpdateInterval() const -{ - return 500; -} - -void LogFilePositionSource::startUpdates() -{ - lastError = QGeoPositionInfoSource::NoError; - int interval = updateInterval(); - if (interval < minimumUpdateInterval()) - interval = minimumUpdateInterval(); - - timer->start(interval); -} - -void LogFilePositionSource::stopUpdates() -{ - timer->stop(); -} - -void LogFilePositionSource::requestUpdate(int /*timeout*/) -{ - // For simplicity, ignore timeout - assume that if data is not available - // now, no data will be added to the file later - lastError = QGeoPositionInfoSource::NoError; - if (logFile->canReadLine()) { - readNextPosition(); - } else { - lastError = QGeoPositionInfoSource::UpdateTimeoutError; - emit QGeoPositionInfoSource::errorOccurred(lastError); - } -} - -void LogFilePositionSource::readNextPosition() -{ - QByteArray line = logFile->readLine().trimmed(); - if (!line.isEmpty()) { - QList<QByteArray> data = line.split(' '); - double latitude; - double longitude; - bool hasLatitude = false; - bool hasLongitude = false; - QDateTime timestamp = QDateTime::fromString(QString(data.value(0)), Qt::ISODate); - latitude = data.value(1).toDouble(&hasLatitude); - longitude = data.value(2).toDouble(&hasLongitude); - - if (hasLatitude && hasLongitude && timestamp.isValid()) { - QGeoCoordinate coordinate(latitude, longitude); - QGeoPositionInfo info(coordinate, timestamp); - if (info.isValid()) { - lastPosition = info; - emit positionUpdated(info); - } - } - } -} - -QGeoPositionInfoSource::Error LogFilePositionSource::error() const -{ - return lastError; -} diff --git a/examples/positioning/logfilepositionsource/logfilepositionsource.h b/examples/positioning/logfilepositionsource/logfilepositionsource.h deleted file mode 100644 index aca72ab2..00000000 --- a/examples/positioning/logfilepositionsource/logfilepositionsource.h +++ /dev/null @@ -1,88 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef LOGFILEPOSITIONSOURCE_H -#define LOGFILEPOSITIONSOURCE_H - -#include <QtPositioning/qgeopositioninfosource.h> - -QT_BEGIN_NAMESPACE -class QFile; -class QTimer; -QT_END_NAMESPACE - -class LogFilePositionSource : public QGeoPositionInfoSource -{ - Q_OBJECT -public: - LogFilePositionSource(QObject *parent = 0); - - QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly = false) const override; - - PositioningMethods supportedPositioningMethods() const override; - int minimumUpdateInterval() const override; - Error error() const override; - -public slots: - virtual void startUpdates() override; - virtual void stopUpdates() override; - - virtual void requestUpdate(int timeout = 5000) override; - -private slots: - void readNextPosition(); - -private: - QFile *logFile; - QTimer *timer; - QGeoPositionInfo lastPosition; - Error lastError = QGeoPositionInfoSource::NoError; -}; - -#endif diff --git a/examples/positioning/logfilepositionsource/logfilepositionsource.pro b/examples/positioning/logfilepositionsource/logfilepositionsource.pro deleted file mode 100644 index cb9e30ae..00000000 --- a/examples/positioning/logfilepositionsource/logfilepositionsource.pro +++ /dev/null @@ -1,16 +0,0 @@ -TEMPLATE = app -TARGET = logfilepositionsource -QT = positioning core widgets - - -HEADERS = logfilepositionsource.h \ - clientapplication.h -SOURCES = logfilepositionsource.cpp \ - clientapplication.cpp \ - main.cpp - -RESOURCES += \ - logfile.qrc - -target.path = $$[QT_INSTALL_EXAMPLES]/positioning/logfilepositionsource -INSTALLS += target diff --git a/examples/positioning/logfilepositionsource/main.cpp b/examples/positioning/logfilepositionsource/main.cpp deleted file mode 100644 index dcc05a1a..00000000 --- a/examples/positioning/logfilepositionsource/main.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include <QApplication> - -#include "clientapplication.h" - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - ClientApplication client; - client.show(); - - return app.exec(); -} diff --git a/examples/positioning/logfilepositionsource/simplelog.txt b/examples/positioning/logfilepositionsource/simplelog.txt deleted file mode 100644 index d016b2a8..00000000 --- a/examples/positioning/logfilepositionsource/simplelog.txt +++ /dev/null @@ -1,156 +0,0 @@ -2009-08-24T22:24:37 -27.572321 153.090718 -2009-08-24T22:24:38 -27.572470 153.090783 -2009-08-24T22:24:39 -27.572616 153.090845 -2009-08-24T22:24:40 -27.572763 153.090908 -2009-08-24T22:24:41 -27.572914 153.090971 -2009-08-24T22:24:42 -27.573068 153.091036 -2009-08-24T22:24:43 -27.573224 153.091102 -2009-08-24T22:24:44 -27.573383 153.091167 -2009-08-24T22:24:45 -27.573541 153.091232 -2009-08-24T22:24:46 -27.573700 153.091298 -2009-08-24T22:24:47 -27.573860 153.091366 -2009-08-24T22:24:48 -27.574019 153.091435 -2009-08-24T22:24:49 -27.574178 153.091507 -2009-08-24T22:24:50 -27.574340 153.091581 -2009-08-24T22:24:51 -27.574506 153.091654 -2009-08-24T22:24:52 -27.574670 153.091729 -2009-08-24T22:24:53 -27.574836 153.091800 -2009-08-24T22:24:54 -27.575001 153.091870 -2009-08-24T22:24:55 -27.575165 153.091940 -2009-08-24T22:24:56 -27.575327 153.092010 -2009-08-24T22:24:57 -27.575485 153.092078 -2009-08-24T22:24:58 -27.575641 153.092144 -2009-08-24T22:24:59 -27.575795 153.092218 -2009-08-24T22:25:00 -27.575942 153.092308 -2009-08-24T22:25:01 -27.576082 153.092415 -2009-08-24T22:25:02 -27.576223 153.092530 -2009-08-24T22:25:03 -27.576364 153.092648 -2009-08-24T22:25:04 -27.576505 153.092763 -2009-08-24T22:25:05 -27.576646 153.092879 -2009-08-24T22:25:06 -27.576784 153.092990 -2009-08-24T22:25:07 -27.576918 153.093099 -2009-08-24T22:25:08 -27.577046 153.093204 -2009-08-24T22:25:09 -27.577168 153.093303 -2009-08-24T22:25:10 -27.577284 153.093396 -2009-08-24T22:25:11 -27.577396 153.093484 -2009-08-24T22:25:12 -27.577499 153.093568 -2009-08-24T22:25:13 -27.577595 153.093647 -2009-08-24T22:25:14 -27.577692 153.093727 -2009-08-24T22:25:15 -27.577793 153.093810 -2009-08-24T22:25:16 -27.577897 153.093896 -2009-08-24T22:25:17 -27.578006 153.093984 -2009-08-24T22:25:18 -27.578120 153.094074 -2009-08-24T22:25:19 -27.578237 153.094168 -2009-08-24T22:25:20 -27.578360 153.094267 -2009-08-24T22:25:21 -27.578487 153.094370 -2009-08-24T22:25:22 -27.578617 153.094474 -2009-08-24T22:25:23 -27.578748 153.094581 -2009-08-24T22:25:24 -27.578880 153.094688 -2009-08-24T22:25:25 -27.579014 153.094796 -2009-08-24T22:25:26 -27.579149 153.094905 -2009-08-24T22:25:27 -27.579285 153.095012 -2009-08-24T22:25:28 -27.579420 153.095121 -2009-08-24T22:25:29 -27.579552 153.095231 -2009-08-24T22:25:30 -27.579684 153.095340 -2009-08-24T22:25:31 -27.579820 153.095449 -2009-08-24T22:25:32 -27.579956 153.095558 -2009-08-24T22:25:33 -27.580095 153.095667 -2009-08-24T22:25:34 -27.580240 153.095776 -2009-08-24T22:25:35 -27.580392 153.095885 -2009-08-24T22:25:36 -27.580536 153.095995 -2009-08-24T22:25:37 -27.580679 153.096109 -2009-08-24T22:25:38 -27.580824 153.096226 -2009-08-24T22:25:39 -27.580965 153.096337 -2009-08-24T22:25:40 -27.581101 153.096441 -2009-08-24T22:25:41 -27.581237 153.096537 -2009-08-24T22:25:42 -27.581356 153.096628 -2009-08-24T22:25:43 -27.581466 153.096714 -2009-08-24T22:25:44 -27.581555 153.096795 -2009-08-24T22:25:45 -27.581606 153.096847 -2009-08-24T22:25:46 -27.581539 153.096855 -2009-08-24T22:25:47 -27.581572 153.096873 -2009-08-24T22:25:48 -27.581579 153.096875 -2009-08-24T22:25:49 -27.581582 153.096878 -2009-08-24T22:25:50 -27.581588 153.096880 -2009-08-24T22:25:51 -27.581588 153.096880 -2009-08-24T22:25:52 -27.581592 153.096881 -2009-08-24T22:25:53 -27.581596 153.096882 -2009-08-24T22:25:54 -27.581599 153.096883 -2009-08-24T22:25:55 -27.581601 153.096883 -2009-08-24T22:25:56 -27.581602 153.096883 -2009-08-24T22:25:57 -27.581606 153.096890 -2009-08-24T22:25:58 -27.581606 153.096919 -2009-08-24T22:25:59 -27.581605 153.096985 -2009-08-24T22:26:00 -27.581573 153.097060 -2009-08-24T22:26:01 -27.581532 153.097142 -2009-08-24T22:26:02 -27.581484 153.097227 -2009-08-24T22:26:03 -27.581426 153.097324 -2009-08-24T22:26:04 -27.581373 153.097424 -2009-08-24T22:26:05 -27.581320 153.097530 -2009-08-24T22:26:06 -27.581265 153.097641 -2009-08-24T22:26:07 -27.581203 153.097757 -2009-08-24T22:26:08 -27.581144 153.097875 -2009-08-24T22:26:09 -27.581093 153.097995 -2009-08-24T22:26:10 -27.581042 153.098116 -2009-08-24T22:26:11 -27.580987 153.098231 -2009-08-24T22:26:12 -27.580919 153.098334 -2009-08-24T22:26:13 -27.580841 153.098428 -2009-08-24T22:26:14 -27.580754 153.098511 -2009-08-24T22:26:15 -27.580667 153.098591 -2009-08-24T22:26:16 -27.580581 153.098671 -2009-08-24T22:26:17 -27.580492 153.098751 -2009-08-24T22:26:18 -27.580401 153.098832 -2009-08-24T22:26:19 -27.580311 153.098914 -2009-08-24T22:26:20 -27.580224 153.098996 -2009-08-24T22:26:21 -27.580140 153.099078 -2009-08-24T22:26:22 -27.580059 153.099159 -2009-08-24T22:26:23 -27.579980 153.099245 -2009-08-24T22:26:24 -27.579900 153.099336 -2009-08-24T22:26:25 -27.579826 153.099433 -2009-08-24T22:26:26 -27.579753 153.099529 -2009-08-24T22:26:27 -27.579680 153.099623 -2009-08-24T22:26:28 -27.579606 153.099716 -2009-08-24T22:26:29 -27.579538 153.099808 -2009-08-24T22:26:30 -27.579477 153.099893 -2009-08-24T22:26:31 -27.579416 153.099968 -2009-08-24T22:26:32 -27.579393 153.100027 -2009-08-24T22:26:33 -27.579376 153.100092 -2009-08-24T22:26:34 -27.579384 153.100142 -2009-08-24T22:26:35 -27.579403 153.100181 -2009-08-24T22:26:36 -27.579429 153.100210 -2009-08-24T22:26:37 -27.579460 153.100237 -2009-08-24T22:26:38 -27.579493 153.100265 -2009-08-24T22:26:39 -27.579518 153.100291 -2009-08-24T22:26:40 -27.579536 153.100336 -2009-08-24T22:26:41 -27.579591 153.100358 -2009-08-24T22:26:42 -27.579618 153.100383 -2009-08-24T22:26:43 -27.579639 153.100404 -2009-08-24T22:26:44 -27.579650 153.100420 -2009-08-24T22:26:45 -27.579665 153.100432 -2009-08-24T22:26:46 -27.579679 153.100442 -2009-08-24T22:26:47 -27.579690 153.100451 -2009-08-24T22:26:48 -27.579697 153.100459 -2009-08-24T22:26:49 -27.579700 153.100462 -2009-08-24T22:26:50 -27.579699 153.100464 -2009-08-24T22:26:51 -27.579699 153.100466 -2009-08-24T22:26:52 -27.579700 153.100466 -2009-08-24T22:26:53 -27.579704 153.100466 -2009-08-24T22:26:54 -27.579705 153.100465 -2009-08-24T22:26:55 -27.579708 153.100468 -2009-08-24T22:26:56 -27.579712 153.100471 -2009-08-24T22:26:57 -27.579719 153.100476 -2009-08-24T22:26:58 -27.579728 153.100485 -2009-08-24T22:26:59 -27.579744 153.100493 -2009-08-24T22:27:00 -27.579759 153.100496 -2009-08-24T22:27:01 -27.579780 153.100481 -2009-08-24T22:27:02 -27.579788 153.100462 -2009-08-24T22:27:03 -27.579791 153.100436 -2009-08-24T22:27:04 -27.579788 153.100426 -2009-08-24T22:27:05 -27.579783 153.100409 -2009-08-24T22:27:06 -27.579781 153.100390 -2009-08-24T22:27:07 -27.579780 153.100375 -2009-08-24T22:27:08 -27.579779 153.100364 -2009-08-24T22:27:09 -27.579778 153.100354 -2009-08-24T22:27:10 -27.579777 153.100347 -2009-08-24T22:27:11 -27.579777 153.100341 -2009-08-24T22:27:12 -27.579776 153.100336 |