Checks Mania++ version (and possibly plugin versions).  
 More...
#include <VersionChecker.h>
|  | 
| bool | CheckForUpdates (std::string repository, std::string currentVersion) | 
|  | Returns whether there are updates available.  More... 
 | 
|  | 
|  | 
| static size_t | receiveData (void *contents, size_t size, size_t nmemb, std::string *tags) | 
|  | Receives data from cURL input.  More... 
 | 
|  | 
Checks Mania++ version (and possibly plugin versions). 
      
        
          | bool VersionChecker::CheckForUpdates | ( | std::string | repository, | 
        
          |  |  | std::string | currentVersion | 
        
          |  | ) |  |  | 
      
 
Returns whether there are updates available. 
- Parameters
- 
  
    | repository | Name of the GitHub repository. |  | currentVersion | Version to which the repository to. |  
 
 
 
  
  | 
        
          | void VersionChecker::decodeRelease | ( | GitVersion * | version, |  
          |  |  | std::string | response |  
          |  | ) |  |  |  | private | 
 
Decodes the JSON response with release and inputs info into version struct. 
- Parameters
- 
  
    | version | Version struct. |  | response | Server response (JSON). |  
 
 
 
  
  | 
        
          | std::vector< GitVersion > VersionChecker::decodeVersions | ( | std::string | response | ) |  |  | private | 
 
Decodes the JSON response with versions (tags) of repository. 
- Parameters
- 
  
    | response | Server response (JSON). |  
 
 
 
  
  | 
        
          | size_t VersionChecker::receiveData | ( | void * | contents, |  
          |  |  | size_t | size, |  
          |  |  | size_t | nmemb, |  
          |  |  | std::string * | tags |  
          |  | ) |  |  |  | staticprivate | 
 
Receives data from cURL input. 
- Parameters
- 
  
    | contents | Contents from cURL. |  | size | Size of contents. |  | nmemb | Number of members (?). |  | tags | Output string. |  
 
 
 
  
  | 
        
          | void VersionChecker::retrieveData | ( | std::string | url, |  
          |  |  | std::string * | data |  
          |  | ) |  |  |  | private | 
 
Retrieves data via cURL. 
- Parameters
- 
  
    | url | URL to retrieve. |  | data | Received data (return). |  
 
 
 
  
  | 
        
          | void VersionChecker::retrieveRelease | ( | GitVersion * | version | ) |  |  | private | 
 
Retrieves release information. 
- Parameters
- 
  
  
 
 
  
  | 
        
          | std::vector< GitVersion > VersionChecker::retrieveVersions | ( | std::string | repository | ) |  |  | private | 
 
Retrieves versions (tags) of repository. 
- Parameters
- 
  
    | repository | Repository name. |  
 
 
 
The documentation for this class was generated from the following files:
- /home/travis/build/TheMaximum/mania-pp/src/Version/VersionChecker.h
- /home/travis/build/TheMaximum/mania-pp/src/Version/VersionChecker.cpp