Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91e5130
commit 6571b9b
Showing
5 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpslogger.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsGpsLogger : QObject | ||
%Docstring | ||
Handles logging of incoming GPS data to a vector layer. | ||
|
||
:py:class:`QgsBabelFormatRegistry` is not usually directly created, but rather accessed through | ||
:py:func:`QgsApplication.gpsBabelFormatRegistry()`. | ||
|
||
.. versionadded:: 3.30 | ||
%End | ||
{ | ||
|
||
public: | ||
|
||
QgsGpsLogger( QgsGpsConnection *connection, QObject *parent /TransferThis/ = 0 ); | ||
%Docstring | ||
Constructor for :py:class:`QgsGpsLogger` with the specified ``parent`` object. | ||
|
||
The logger will automatically record GPS information from the specified ``connection``. | ||
%End | ||
|
||
~QgsGpsLogger(); | ||
|
||
QgsGpsConnection *connection(); | ||
%Docstring | ||
Returns the associated GPS connection. | ||
%End | ||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpslogger.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/*************************************************************************** | ||
qgsgpslogger.cpp | ||
------------------- | ||
begin : November 2022 | ||
copyright : (C) 2022 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "qgsgpslogger.h" | ||
#include "qgsgpsconnection.h" | ||
|
||
QgsGpsLogger::QgsGpsLogger( QgsGpsConnection *connection, QObject *parent ) | ||
: QObject( parent ) | ||
, mConnection( connection ) | ||
{ | ||
|
||
} | ||
|
||
QgsGpsLogger::~QgsGpsLogger() | ||
{ | ||
|
||
} | ||
|
||
QgsGpsConnection *QgsGpsLogger::connection() | ||
{ | ||
return mConnection; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/*************************************************************************** | ||
qgsgpslogger.h | ||
------------------- | ||
begin : November 2022 | ||
copyright : (C) 2022 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSGPSLOGGER_H | ||
#define QGSGPSLOGGER_H | ||
|
||
#include "qgis_core.h" | ||
#include "qgis.h" | ||
#include <QObject> | ||
#include <QPointer> | ||
|
||
class QgsGpsConnection; | ||
|
||
|
||
/** | ||
* \ingroup core | ||
* \class QgsGpsLogger | ||
* \brief Handles logging of incoming GPS data to a vector layer. | ||
* | ||
* QgsBabelFormatRegistry is not usually directly created, but rather accessed through | ||
* QgsApplication::gpsBabelFormatRegistry(). | ||
* | ||
* \since QGIS 3.30 | ||
*/ | ||
class CORE_EXPORT QgsGpsLogger : QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
/** | ||
* Constructor for QgsGpsLogger with the specified \a parent object. | ||
* | ||
* The logger will automatically record GPS information from the specified \a connection. | ||
*/ | ||
QgsGpsLogger( QgsGpsConnection *connection, QObject *parent SIP_TRANSFERTHIS = nullptr ); | ||
|
||
~QgsGpsLogger() override; | ||
|
||
/** | ||
* Returns the associated GPS connection. | ||
*/ | ||
QgsGpsConnection *connection(); | ||
|
||
private: | ||
|
||
QPointer< QgsGpsConnection > mConnection; | ||
}; | ||
|
||
|
||
#endif // QGSGPSLOGGER_H |