MetaImGUI 1.0.0
ImGui Application Template for C++20
Loading...
Searching...
No Matches
MetaImGUI::UpdateChecker Class Reference

#include <UpdateChecker.h>

Public Member Functions

 UpdateChecker (std::string repoOwner, std::string repoName)
 
 ~UpdateChecker ()
 
 UpdateChecker (const UpdateChecker &)=delete
 
UpdateCheckeroperator= (const UpdateChecker &)=delete
 
 UpdateChecker (UpdateChecker &&)=delete
 
UpdateCheckeroperator= (UpdateChecker &&)=delete
 
void CheckForUpdatesAsync (std::function< void(const UpdateInfo &)> callback)
 
UpdateInfo CheckForUpdates ()
 
void Cancel ()
 
bool IsChecking () const
 

Static Public Member Functions

static int CompareVersions (const std::string &v1, const std::string &v2)
 

Detailed Description

Definition at line 41 of file UpdateChecker.h.

Constructor & Destructor Documentation

◆ UpdateChecker() [1/3]

MetaImGUI::UpdateChecker::UpdateChecker ( std::string  repoOwner,
std::string  repoName 
)

Definition at line 35 of file UpdateChecker.cpp.

◆ ~UpdateChecker()

MetaImGUI::UpdateChecker::~UpdateChecker ( )

Definition at line 38 of file UpdateChecker.cpp.

References Cancel().

◆ UpdateChecker() [2/3]

MetaImGUI::UpdateChecker::UpdateChecker ( const UpdateChecker )
delete

◆ UpdateChecker() [3/3]

MetaImGUI::UpdateChecker::UpdateChecker ( UpdateChecker &&  )
delete

Member Function Documentation

◆ Cancel()

void MetaImGUI::UpdateChecker::Cancel ( )

Definition at line 82 of file UpdateChecker.cpp.

References LOG_INFO.

Referenced by ~UpdateChecker().

◆ CheckForUpdates()

UpdateInfo MetaImGUI::UpdateChecker::CheckForUpdates ( )

Definition at line 74 of file UpdateChecker.cpp.

◆ CheckForUpdatesAsync()

void MetaImGUI::UpdateChecker::CheckForUpdatesAsync ( std::function< void(const UpdateInfo &)>  callback)

Definition at line 43 of file UpdateChecker.cpp.

References LOG_ERROR, and LOG_INFO.

◆ CompareVersions()

int MetaImGUI::UpdateChecker::CompareVersions ( const std::string &  v1,
const std::string &  v2 
)
static

Definition at line 244 of file UpdateChecker.cpp.

◆ IsChecking()

bool MetaImGUI::UpdateChecker::IsChecking ( ) const

Definition at line 92 of file UpdateChecker.cpp.

◆ operator=() [1/2]

UpdateChecker & MetaImGUI::UpdateChecker::operator= ( const UpdateChecker )
delete

◆ operator=() [2/2]

UpdateChecker & MetaImGUI::UpdateChecker::operator= ( UpdateChecker &&  )
delete

The documentation for this class was generated from the following files: