mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -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 {
|
||||
%TypeHeaderCode
|
||||
#include <qgsgpsconnection.h>
|
||||
#include <qgsgpsdconnection.h>
|
||||
#include <qgsnmeaconnection.h>
|
||||
%End
|
||||
|
||||
%ConvertToSubClassCode
|
||||
if (sipCpp->inherits("QgsGpsdConnection"))
|
||||
sipClass = sipClass_QgsGpsdConnection;
|
||||
else if (sipCpp->inherits("QgsNMEAConnection"))
|
||||
sipClass = sipClass_QgsNMEAConnection;
|
||||
else
|
||||
sipClass = NULL;
|
||||
%End
|
||||
|
||||
public:
|
||||
enum Status {
|
||||
NotConnected, Connected, DataReceived, GPSDataReceived
|
||||
|
Loading…
x
Reference in New Issue
Block a user