6#include <QtCore/QtGlobal>
27 std::shared_ptr<State> _state;
45 std::shared_ptr<GPSCancelToken::State> _state;
60 std::shared_ptr<GPSCancelToken::State> _state;
61 std::function<void()> _callback;
GPSCancelCallback(const GPSCancelToken &token, std::function< void()> callback)
GPSCancelToken token() const
bool isCancelled() const
Safe to call from any thread.
GPSCancelToken()=default
A token that is never cancelled.
friend class GPSCancelCallback
friend class GPSCancelSource