Lines Matching defs:ProgressEvent
1 //===-- ProgressEvent.cpp ---------------------------------------*- C++ -*-===//
9 #include "ProgressEvent.h"
26 ProgressEvent::ProgressEvent(uint64_t progress_id,
29 const ProgressEvent *prev_event)
68 std::optional<ProgressEvent>
69 ProgressEvent::Create(uint64_t progress_id, std::optional<StringRef> message,
71 const ProgressEvent *prev_event) {
75 ProgressEvent event(progress_id, message, completed, total, prev_event);
86 bool ProgressEvent::EqualsForIDE(const ProgressEvent &other) const {
92 ProgressEventType ProgressEvent::GetEventType() const { return m_event_type; }
94 StringRef ProgressEvent::GetEventName() const {
106 json::Value ProgressEvent::ToJSON() const {
133 bool ProgressEvent::Report(ProgressEventReportCallback callback) {
145 bool ProgressEvent::Reported() const { return m_reported; }
148 const ProgressEvent &start_event,
166 const ProgressEvent &ProgressEventManager::GetMostRecentEvent() const {
172 if (std::optional<ProgressEvent> event = ProgressEvent::Create(
225 if (std::optional<ProgressEvent> event = ProgressEvent::Create(