KiCad PCB EDA Suite
|
#include <update_manager.h>
Public Member Functions | |
UPDATE_MANAGER () | |
void | CheckForUpdate (wxWindow *aNoticeParent) |
int | PostRequest (const wxString &aUrl, std::string aRequestBody, std::ostream *aOutput, PROGRESS_REPORTER *aReporter, const size_t aSizeLimit) |
Private Attributes | |
std::atomic< bool > | m_working |
std::shared_ptr< BACKGROUND_JOB > | m_updateBackgroundJob |
Definition at line 34 of file update_manager.h.
UPDATE_MANAGER::UPDATE_MANAGER | ( | ) |
void UPDATE_MANAGER::CheckForUpdate | ( | wxWindow * | aNoticeParent | ) |
Definition at line 157 of file update_manager.cpp.
References _, UPDATE_REQUEST::arch, BACKGROUND_JOBS_MONITOR::Create(), UPDATE_REQUEST::current_version, SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetBackgroundJobMonitor(), GetKiCadThreadPool(), PGM_BASE::GetLanguageTag(), GetSemanticVersion(), PGM_BASE::GetSettingsManager(), UPDATE_REQUEST::lang, UPDATE_REQUEST::last_check, KICAD_SETTINGS::m_lastReceivedUpdate, KICAD_SETTINGS::m_lastUpdateCheckTime, m_updateBackgroundJob, m_working, Pgm(), UPDATE_REQUEST::platform, PostRequest(), BACKGROUND_JOBS_MONITOR::Remove(), tp, and UPDATE_QUERY_ENDPOINT.
int UPDATE_MANAGER::PostRequest | ( | const wxString & | aUrl, |
std::string | aRequestBody, | ||
std::ostream * | aOutput, | ||
PROGRESS_REPORTER * | aReporter, | ||
const size_t | aSizeLimit | ||
) |
Definition at line 89 of file update_manager.cpp.
References _, KICAD_CURL_EASY::GetErrorText(), KICAD_CURL_EASY::GetResponseStatusCode(), PROGRESS_REPORTER::IsCancelled(), PROGRESS_REPORTER::KeepRefreshing(), KICAD_CURL_EASY::Perform(), PROGRESS_REPORTER::Report(), PROGRESS_REPORTER::SetCurrentProgress(), KICAD_CURL_EASY::SetFollowRedirects(), KICAD_CURL_EASY::SetHeader(), KICAD_CURL_EASY::SetOutputStream(), KICAD_CURL_EASY::SetPostFields(), KICAD_CURL_EASY::SetTransferCallback(), and KICAD_CURL_EASY::SetURL().
Referenced by CheckForUpdate().
|
private |
Definition at line 45 of file update_manager.h.
Referenced by CheckForUpdate().
|
private |
Definition at line 44 of file update_manager.h.
Referenced by CheckForUpdate().