KiCad PCB EDA Suite
Loading...
Searching...
No Matches
git_transfer.h File Reference
#include <functional>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <git/kicad_git_common.h>
#include <widgets/progress_reporter_base.h>

Go to the source code of this file.

Classes

class  KIGIT_STATUS_REPORTER
 One background git transfer owned by the window that started it: the cancellation, whether one is running, and the owner's lifetime. More...
 
class  KIGIT_TRANSFER
 
class  KIGIT_QUERY
 Read repository state without blocking the UI. More...
 
struct  KIGIT_QUERY::REQUEST
 

Namespaces

namespace  KIGIT
 

Functions

void KIGIT::CallOnUi (std::function< void()> aFn)
 Run aFn on the UI thread.
 
void KIGIT::CallIfAlive (const std::weak_ptr< bool > &aWatch, std::function< void()> aFn)
 As CallOnUi, for work that touches the window that started the transfer.
 
bool KIGIT::StartTransfer (const std::string &aLabel, std::function< void()> aWork)
 Run aWork on a thread the orphan registry owns.