Fetching contributors…
Cannot retrieve contributors at this time
42 lines (29 sloc) 956 Bytes
/* Copyright (C) 2017 Rainmeter Project Developers
* This Source Code Form is subject to the terms of the GNU General Public
* License; either version 2 of the License, or (at your option) any later
* version. If a copy of the GPL was not distributed with this file, You can
* obtain one at <>. */
#ifndef __UPDATE_CHECK_H__
#define __UPDATE_CHECK_H__
#include "json/json.hpp"
class Updater
static Updater& GetInstance();
void CheckUpdate();
void CheckLanguage();
Updater(const Updater& other) = delete;
Updater& operator=(Updater other) = delete;
static void CheckVersion(void* dummy);
static int ParseVersion(LPCWSTR str);
nlohmann::json m_Status;
static LPCWSTR c_UpdateURL;
// Convenience function.
inline Updater& GetUpdater() { return Updater::GetInstance(); }