llvm/lldb/tools/lldb-dap/ProgressEvent.cpp

//===-- ProgressEvent.cpp ---------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "ProgressEvent.h"

#include "JSONUtils.h"
#include "llvm/Support/ErrorHandling.h"
#include <optional>

usingnamespacelldb_dap;
usingnamespacellvm;

// The minimum duration of an event for it to be reported
const std::chrono::duration<double> kStartProgressEventReportDelay =;
// The minimum time interval between update events for reporting. If multiple
// updates fall within the same time interval, only the latest is reported.
const std::chrono::duration<double> kUpdateProgressEventReportDelay =;

ProgressEvent::ProgressEvent(uint64_t progress_id,
                             std::optional<StringRef> message,
                             uint64_t completed, uint64_t total,
                             const ProgressEvent *prev_event)
    :{}

std::optional<ProgressEvent>
ProgressEvent::Create(uint64_t progress_id, std::optional<StringRef> message,
                      uint64_t completed, uint64_t total,
                      const ProgressEvent *prev_event) {}

bool ProgressEvent::EqualsForIDE(const ProgressEvent &other) const {}

ProgressEventType ProgressEvent::GetEventType() const {}

StringRef ProgressEvent::GetEventName() const {}

json::Value ProgressEvent::ToJSON() const {}

bool ProgressEvent::Report(ProgressEventReportCallback callback) {}

bool ProgressEvent::Reported() const {}

ProgressEventManager::ProgressEventManager(
    const ProgressEvent &start_event,
    ProgressEventReportCallback report_callback)
    :{}

bool ProgressEventManager::ReportIfNeeded() {}

const ProgressEvent &ProgressEventManager::GetMostRecentEvent() const {}

void ProgressEventManager::Update(uint64_t progress_id, uint64_t completed,
                                  uint64_t total) {}

bool ProgressEventManager::Finished() const {}

ProgressEventReporter::ProgressEventReporter(
    ProgressEventReportCallback report_callback)
    :{}

ProgressEventReporter::~ProgressEventReporter() {}

void ProgressEventReporter::ReportStartEvents() {}

void ProgressEventReporter::Push(uint64_t progress_id, const char *message,
                                 uint64_t completed, uint64_t total) {}