#include <UpdateCheckerBase.h>
|
void | ClearFiles (HMODULE pDll) noexcept |
|
std::unique_ptr< UpdateState > | CheckForUpdate (HMODULE pDll, const Version &pCurrentVersion, std::string &&pRepo, bool pAllowPreRelease) noexcept |
|
std::unique_ptr< UpdateState > | GetInstallState (std::string &&pInstallPath, std::string &&pRepo, bool pAllowPreRelease) noexcept |
|
void | PerformInstallOrUpdate (UpdateState &pState) noexcept |
|
virtual std::optional< std::string > | GetPathFromHModule (HMODULE pDll) noexcept |
|
std::unique_ptr< UpdateState > | GetUpdateInternal (std::string &&pInstallPath, const std::optional< Version > &pCurrentVersion, std::string &&pRepo, bool pAllowPreRelease) noexcept |
|
virtual bool | IsNewer (const Version &pRepoVersion, const Version &pCurrentVersion) |
|
virtual void | Log (std::string &&pMessage) |
|
virtual Version | ParseVersion (std::string_view versionString) |
|
bool | PerformDownload (const std::string &pUrl, const std::string &pDestinationPath) |
|
std::optional< std::tuple< Version, std::string > > | GetLatestRelease (std::string &&pRepo, bool pAllowPreRelease) |
|
virtual bool | HttpDownload (const std::string &pUrl, const std::filesystem::path &pOutputFile)=0 |
|
virtual std::optional< std::string > | HttpGet (const std::string &pUrl)=0 |
|
◆ Version
◆ Status
Enumerator |
---|
Unknown | |
UpdateAvailable | |
Dismissed | |
UpdateInProgress | |
UpdateSuccessful | |
UpdateError | |
◆ CheckForUpdate()
◆ ClearFiles()
void ArcdpsExtension::UpdateCheckerBase::ClearFiles |
( |
HMODULE |
pDll | ) |
|
|
noexcept |
◆ GetCurrentVersion()
◆ GetInstallState()
◆ GetLatestRelease()
◆ GetPathFromHModule()
std::optional< std::string > ArcdpsExtension::UpdateCheckerBase::GetPathFromHModule |
( |
HMODULE |
pDll | ) |
|
|
virtualnoexcept |
◆ GetUpdateInternal()
◆ GetVersionAsString()
std::string ArcdpsExtension::UpdateCheckerBase::GetVersionAsString |
( |
const Version & |
pVersion | ) |
|
|
static |
◆ HttpDownload()
virtual bool ArcdpsExtension::UpdateCheckerBase::HttpDownload |
( |
const std::string & |
pUrl, |
|
|
const std::filesystem::path & |
pOutputFile |
|
) |
| |
|
pure virtual |
◆ HttpGet()
virtual std::optional< std::string > ArcdpsExtension::UpdateCheckerBase::HttpGet |
( |
const std::string & |
pUrl | ) |
|
|
pure virtual |
◆ IsNewer()
bool ArcdpsExtension::UpdateCheckerBase::IsNewer |
( |
const Version & |
pRepoVersion, |
|
|
const Version & |
pCurrentVersion |
|
) |
| |
|
virtual |
◆ Log()
void ArcdpsExtension::UpdateCheckerBase::Log |
( |
std::string && |
pMessage | ) |
|
|
virtual |
◆ ParseVersion()
◆ PerformDownload()
bool ArcdpsExtension::UpdateCheckerBase::PerformDownload |
( |
const std::string & |
pUrl, |
|
|
const std::string & |
pDestinationPath |
|
) |
| |
◆ PerformInstallOrUpdate()
void ArcdpsExtension::UpdateCheckerBase::PerformInstallOrUpdate |
( |
UpdateState & |
pState | ) |
|
|
noexcept |
The documentation for this class was generated from the following files: