| 
    KiCad PCB EDA Suite
    
   | 
 
#include <update_manager.h>
Public Member Functions | |
| UPDATE_MANAGER () | |
| ~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 | 
| std::future< void > | m_updateTask | 
Definition at line 35 of file update_manager.h.
| UPDATE_MANAGER::UPDATE_MANAGER | ( | ) | 
| UPDATE_MANAGER::~UPDATE_MANAGER | ( | ) | 
Definition at line 89 of file update_manager.cpp.
References m_updateBackgroundJob, and m_updateTask.
| void UPDATE_MANAGER::CheckForUpdate | ( | wxWindow * | aNoticeParent | ) | 
Definition at line 170 of file update_manager.cpp.
References _, UPDATE_REQUEST::arch, BACKGROUND_JOBS_MONITOR::Create(), UPDATE_REQUEST::current_version, GetAppSettings(), PGM_BASE::GetBackgroundJobMonitor(), GetKiCadThreadPool(), PGM_BASE::GetLanguageTag(), GetSemanticVersion(), UPDATE_REQUEST::lang, UPDATE_REQUEST::last_check, KICAD_SETTINGS::m_lastReceivedUpdate, KICAD_SETTINGS::m_lastUpdateCheckTime, m_updateBackgroundJob, m_updateTask, 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 102 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 47 of file update_manager.h.
Referenced by CheckForUpdate(), and ~UPDATE_MANAGER().
      
  | 
  private | 
Definition at line 48 of file update_manager.h.
Referenced by CheckForUpdate(), and ~UPDATE_MANAGER().
      
  | 
  private | 
Definition at line 46 of file update_manager.h.
Referenced by CheckForUpdate().