5#include <QtCore/QTimer>
71 int _timeoutMsecs = 0;
73 bool _completed =
false;
QString stateName() const
Full-featured base class for QGroundControl state machine states.
Base class for states that wait for something with optional timeout.
virtual void onWaitTimeout()
Called when the timeout expires - default emits timeout(), subclasses can override.
virtual void onWaitEntered()
Called when the state is entered - subclasses should call base implementation.
virtual void connectWaitSignal()=0
Subclasses override to set up their signal connections.
virtual void disconnectWaitSignal()=0
Subclasses override to tear down their signal connections.
virtual void onWaitExited()
Called when the state is exited - subclasses should call base implementation.