ArcdpsExtension
 
Loading...
Searching...
No Matches
ArcdpsExtension::UpdateChecker Class Referencefinal

#include <UpdateChecker.h>

Inheritance diagram for ArcdpsExtension::UpdateChecker:
Collaboration diagram for ArcdpsExtension::UpdateChecker:

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< UpdateStateCheckForUpdate (HMODULE pDll, const Version &pCurrentVersion, std::string &&pRepo, bool pAllowPreRelease) noexcept
 
std::unique_ptr< UpdateStateGetInstallState (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< UpdateStateGetUpdateInternal (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 BaseSingletonStore (std::unique_ptr< BaseSingleton > &&ptr)
 
static void Clear (BaseSingleton *ptr)
 

Detailed Description

Use this only if you can live with the Dependencies:

Member Function Documentation

◆ Draw()

void ArcdpsExtension::UpdateChecker::Draw ( const std::unique_ptr< UpdateState > &  pUpdateState,
const std::string &  pPluginName,
const std::string &  pRepoReleaseLink 
)

◆ HttpDownload()

bool ArcdpsExtension::UpdateChecker::HttpDownload ( const std::string &  pUrl,
const std::filesystem::path &  pOutputFile 
)
overridevirtual

◆ HttpGet()

std::optional< std::string > ArcdpsExtension::UpdateChecker::HttpGet ( const std::string &  pUrl)
overridevirtual

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