mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
/*
|
|
* GDevelop IDE
|
|
* Copyright 2008-2014 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
|
|
* This project is released under the GNU General Public License.
|
|
*/
|
|
|
|
#ifndef UPDATECHECKER_H
|
|
#define UPDATECHECKER_H
|
|
#include <string>
|
|
|
|
/**
|
|
* \brief Class to download and retrieve information
|
|
* about GDevelop updates
|
|
*/
|
|
class UpdateChecker
|
|
{
|
|
public:
|
|
|
|
static UpdateChecker *Get();
|
|
static void DestroySingleton();
|
|
|
|
/**
|
|
* Download the information from the official website.
|
|
* \param excludeFromStatistics If set to true, the request asks the website not to take into account the request into statistics.
|
|
*/
|
|
void DownloadInformation(bool excludeFromStatistics = false);
|
|
|
|
bool newVersionAvailable;
|
|
|
|
int newMajor;
|
|
int newMinor;
|
|
int newBuild;
|
|
int newRevision;
|
|
std::string info;
|
|
std::string link;
|
|
|
|
std::string news;
|
|
std::string newsLinkLabel1;
|
|
std::string newsLinkLabel2;
|
|
std::string newsLink1;
|
|
std::string newsLink2;
|
|
|
|
private:
|
|
/**
|
|
* \brief Default constructor
|
|
*/
|
|
UpdateChecker() : newVersionAvailable(false), newMajor(0), newMinor(0), newBuild(0), newRevision(0) {};
|
|
virtual ~UpdateChecker() {};
|
|
|
|
static UpdateChecker *_singleton;
|
|
};
|
|
|
|
#endif // UPDATECHECKER_H
|
|
|