mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Add convert to subclass for QgsGpsConnection for python bindings
This commit is contained in:
parent
0d2230a94b
commit
634a56504f
@ -36,7 +36,19 @@ struct QgsGPSInformation {
|
|||||||
class QgsGPSConnection: QObject {
|
class QgsGPSConnection: QObject {
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsgpsconnection.h>
|
#include <qgsgpsconnection.h>
|
||||||
|
#include <qgsgpsdconnection.h>
|
||||||
|
#include <qgsnmeaconnection.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%ConvertToSubClassCode
|
||||||
|
if (sipCpp->inherits("QgsGpsdConnection"))
|
||||||
|
sipClass = sipClass_QgsGpsdConnection;
|
||||||
|
else if (sipCpp->inherits("QgsNMEAConnection"))
|
||||||
|
sipClass = sipClass_QgsNMEAConnection;
|
||||||
|
else
|
||||||
|
sipClass = NULL;
|
||||||
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum Status {
|
enum Status {
|
||||||
NotConnected, Connected, DataReceived, GPSDataReceived
|
NotConnected, Connected, DataReceived, GPSDataReceived
|
||||||
|
Loading…
x
Reference in New Issue
Block a user