@@ -35,6 +35,7 @@ class Tracker : public QObject
3535 Q_OBJECT
3636
3737 Q_PROPERTY ( bool isActive READ isActive NOTIFY isActiveChanged )
38+ Q_PROPERTY ( bool isSuspended READ isSuspended NOTIFY isSuspendedChanged )
3839 Q_PROPERTY ( bool isReplaying READ isReplaying NOTIFY isReplayingChanged )
3940
4041 Q_PROPERTY ( bool visible READ visible WRITE setVisible NOTIFY visibleChanged )
@@ -134,6 +135,9 @@ class Tracker : public QObject
134135 // ! Returns whether the tracker has been started
135136 bool isActive () const { return mIsActive ; }
136137
138+ // ! Returns whether the track has been suspended
139+ bool isSuspended () const { return mIsSuspended ; }
140+
137141 // ! Returns whether the tracker is replaying positions
138142 bool isReplaying () const { return mIsReplaying ; }
139143
@@ -148,8 +152,11 @@ class Tracker : public QObject
148152 // ! Replays a list of position information taking into account the tracker settings
149153 void replayPositionInformationList ( const QList<GnssPositionInformation> &positionInformationList, QgsQuickCoordinateTransformer *coordinateTransformer = nullptr );
150154
155+ void suspendUntilReplay ();
156+
151157 signals:
152158 void isActiveChanged ();
159+ void isSuspendedChanged ();
153160 void isReplayingChanged ();
154161 void visibleChanged ();
155162 void vectorLayerChanged ();
@@ -177,6 +184,7 @@ class Tracker : public QObject
177184 void trackPosition ();
178185
179186 bool mIsActive = false ;
187+ bool mIsSuspended = false ;
180188 bool mIsReplaying = false ;
181189
182190 RubberbandModel *mRubberbandModel = nullptr ;
0 commit comments