NDEVR
API Documentation
NDEVRUpdateChecker.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/ItemDownloader.h>
4#include <NDEVR/UpdateChecker.h>
5#include <NDEVR/Resource.h>
6#ifndef Q_OS_WASM
7namespace NDEVR
8{
13 class NDEVR_NETWORK_API NDEVRUpdateChecker : public UpdateChecker
14 {
15 public:
24 NDEVRUpdateChecker(const StringView& current_version);
29 void requestCheckForUpdate(const StringView& current_version = StringView()) override;
34 String updateURLPage() const override;
38 void onCheckForUpdateComplete() override;
41 protected:
43 };
44}
45#endif
Used for Downloading resources from a network.
Resource< String > update_address
The network address to check for update.txt.
String updateURLPage() const override
Returns the URL of the page where the user can manually download the update.
NDEVRUpdateChecker()
Constructs an update checker with no initial version.
void requestCheckForUpdate(const StringView &current_version=StringView()) override
Initiates an asynchronous check for software updates.
Resource< String > manual_update_location
The URL for manual update downloads.
void onCheckForUpdateComplete() override
Called when the asynchronous update check completes to process the result.
ItemDownloader * m_check_update
The downloader used to fetch the update check file.
NDEVRUpdateChecker(const StringView &current_version)
Constructs an update checker for the given application version.
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Resource.h:42
The core String View class for the NDEVR API.
Definition StringView.h:58
The core String class for the NDEVR API.
Definition String.h:95
UpdateChecker()
Constructs an UpdateChecker with default settings.
The primary namespace for the NDEVR SDK.