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 <memory>
7#include <string>
8
9namespace ArcdpsExtension {
16 class UpdateChecker final : public UpdateCheckerBase, public Singleton<UpdateChecker> {
17 public:
18 void Draw(const std::unique_ptr<UpdateState>& pUpdateState, const std::string& pPluginName, const std::string& pRepoReleaseLink);
19 bool HttpDownload(const std::string& pUrl, const std::filesystem::path& pOutputFile) override;
20 std::optional<std::string> HttpGet(const std::string& pUrl) override;
21 };
22} // namespace ArcdpsExtension
Definition Singleton.h:48
Definition UpdateCheckerBase.h:32
Definition UpdateChecker.h:16
void Draw(const std::unique_ptr< UpdateState > &pUpdateState, const std::string &pPluginName, const std::string &pRepoReleaseLink)
Definition UpdateChecker.cpp:23
bool HttpDownload(const std::string &pUrl, const std::filesystem::path &pOutputFile) override
Definition UpdateChecker.cpp:78
std::optional< std::string > HttpGet(const std::string &pUrl) override
Definition UpdateChecker.cpp:96
Definition ArcdpsExtension.h:10