34 enum WorkDoneProgressStatus { InCreation, Created, Finished };
39 WorkDoneProgressStatus status = InCreation;
45 int createUniqueToken(
const QByteArray &uri);
46 void removeToken(
const QByteArray &uri);
47 UriWithToken *find(
const QByteArray &uri);
48 std::optional<QQmlProgressSupport::UriWithToken> takeToken(
int token);
51 QHash<QByteArray, UriWithToken> m_tokens;
52 QHash<
int, QByteArray> m_uriByToken;
53 int m_idForBackgroundBuilds = 0;
58 QLanguageServerProtocol *m_protocol =
nullptr;
62 void onBackgroundBuildDone(
const QByteArray &uri);
63 void onBackgroundBuildCancelRequested(
64 const QLspSpecification::Notifications::WorkDoneProgressCancelParamsType &p);