#include <UpdateChecker.h>


Public Member Functions | |
| void | Draw (const std::unique_ptr< UpdateState > &pUpdateState, const std::string &pPluginName, const std::string &pRepoReleaseLink) |
| bool | HttpDownload (const std::string &pUrl, const std::filesystem::path &pOutputFile) override |
| std::optional< std::string > | HttpGet (const std::string &pUrl) override |
Public Member Functions inherited from ArcdpsExtension::UpdateCheckerBase | |
| 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) |
Public Member Functions inherited from ArcdpsExtension::Singleton< UpdateChecker > | |
| ~Singleton () override | |
Public Member Functions inherited from ArcdpsExtension::BaseSingleton | |
| virtual | ~BaseSingleton ()=default |
Additional Inherited Members | |
Public Types inherited from ArcdpsExtension::UpdateCheckerBase | |
| enum class | Status { Unknown , UpdateAvailable , Dismissed , UpdateInProgress , UpdateSuccessful , UpdateError } |
| using | Version = std::array< WORD, 4 > |
Static Public Member Functions inherited from ArcdpsExtension::UpdateCheckerBase | |
| static std::expected< Version, std::string > | GetCurrentVersion (HMODULE dll) noexcept |
| static std::string | GetVersionAsString (const Version &pVersion) |
Static Public Member Functions inherited from ArcdpsExtension::Singleton< UpdateChecker > | |
| static T2 & | instance () |
| static T2 & | init (Args &&... args) |
| static void | f (std::function< void(T2 &)> action) |
| static void | f (std::function< void(UpdateChecker &)> action) |
| static void | reset () |
Static Protected Member Functions inherited from ArcdpsExtension::BaseSingleton | |
| static BaseSingleton * | Store (std::unique_ptr< BaseSingleton > &&ptr) |
| static void | Clear (BaseSingleton *ptr) |
Use this only if you can live with the Dependencies:
| void ArcdpsExtension::UpdateChecker::Draw | ( | const std::unique_ptr< UpdateState > & | pUpdateState, |
| const std::string & | pPluginName, | ||
| const std::string & | pRepoReleaseLink | ||
| ) |
|
overridevirtual |
Implements ArcdpsExtension::UpdateCheckerBase.
|
overridevirtual |
Implements ArcdpsExtension::UpdateCheckerBase.