-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Showing
7 changed files
with
237 additions
and
81 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
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 |
---|---|---|
@@ -1,22 +1,54 @@ | ||
/** A singleton class to register / unregister existing GPS connections such that the information | ||
is available to all classes and plugins*/ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpsconnectionregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsGPSConnectionRegistry | ||
{ | ||
%Docstring | ||
A class to register / unregister existing GPS connections such that the information | ||
is available to all classes and plugins. | ||
|
||
QgsGPSConnectionRegistry is not usually directly created, but rather accessed through | ||
QgsApplication.gpsConnectionRegistry(). | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include <qgsgpsconnectionregistry.h> | ||
#include "qgsgpsconnectionregistry.h" | ||
%End | ||
public: | ||
QgsGPSConnectionRegistry(); | ||
~QgsGPSConnectionRegistry(); | ||
|
||
/** Inserts a connection into the registry. The connection is owned by the registry class until it is unregistered again*/ | ||
|
||
void registerConnection( QgsGPSConnection *c ); | ||
/** Unregisters connection. The registry does no longer own the connection*/ | ||
%Docstring | ||
Inserts a connection into the registry. The connection is owned by the registry class until it is unregistered again | ||
%End | ||
void unregisterConnection( QgsGPSConnection *c ); | ||
%Docstring | ||
Unregisters connection. The registry does no longer own the connection | ||
%End | ||
|
||
QList< QgsGPSConnection *> connectionList() const; | ||
%Docstring | ||
:rtype: list of QgsGPSConnection | ||
%End | ||
|
||
private: | ||
|
||
QgsGPSConnectionRegistry( const QgsGPSConnectionRegistry &rh ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpsconnectionregistry.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
/** Evaluates NMEA sentences coming from gpsd*/ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpsdconnection.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsGpsdConnection: QgsNMEAConnection | ||
{ | ||
%Docstring | ||
Evaluates NMEA sentences coming from gpsd* | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsgpsdconnection.h" | ||
%End | ||
public: | ||
QgsGpsdConnection( const QString &host, qint16 port, const QString &device ); | ||
~QgsGpsdConnection(); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpsdconnection.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,49 @@ | ||
// Class to detect the GPS port | ||
class QgsGPSDetector: QObject | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpsdetector.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsGPSDetector : QObject | ||
{ | ||
%Docstring | ||
Class to detect the GPS port | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsgpsdetector.h" | ||
%End | ||
|
||
public: | ||
QgsGPSDetector( const QString &portName ); | ||
~QgsGPSDetector(); | ||
|
||
static QList< QPair<QString, QString> > availablePorts(); | ||
%Docstring | ||
:rtype: list of QPair<str, QString> | ||
%End | ||
|
||
public slots: | ||
void advance(); | ||
void detected( const QgsGPSInformation& ); | ||
void detected( const QgsGPSInformation & ); | ||
void connDestroyed( QObject * ); | ||
|
||
signals: | ||
void detected( QgsGPSConnection * ); | ||
void detectionFailed(); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/gps/qgsgpsdetector.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
Oops, something went wrong.