ArcdpsExtension
 
Loading...
Searching...
No Matches
UpdateChecker.h
Go to the documentation of this file.
1#pragma once
2
3#include "Singleton.h"
4#include "UpdateCheckerBase.h"
5
6#include <filesystem>
7
8namespace ArcdpsExtension {
15 class UpdateChecker final : public UpdateCheckerBase, public Singleton<UpdateChecker> {
16 public:
17 void Draw(const std::unique_ptr<UpdateState>& pUpdateState, const std::string& pPluginName, const std::string& pRepoReleaseLink);
18 bool HttpDownload(const std::string& pUrl, const std::filesystem::path& pOutputFile) override;
19 std::optional<std::string> HttpGet(const std::string& pUrl) override;
20 };
21} // namespace ArcdpsExtension
Definition Singleton.h:47
Definition UpdateCheckerBase.h:29
Definition UpdateChecker.h:15
void Draw(const std::unique_ptr< UpdateState > &pUpdateState, const std::string &pPluginName, const std::string &pRepoReleaseLink)
Definition UpdateChecker.cpp:14
bool HttpDownload(const std::string &pUrl, const std::filesystem::path &pOutputFile) override
Definition UpdateChecker.cpp:69
std::optional< std::string > HttpGet(const std::string &pUrl) override
Definition UpdateChecker.cpp:87
Definition ArcdpsExtension.h:10