Audio 1.0.0
updater.h
Go to the documentation of this file.
1
11#ifndef UPDATER_H
12#define UPDATER_H
13#include <string>
14#include <vector>
15
22{
23 public:
24 Updater(std::string url, struct curl_slist* headers);
25 ~Updater();
26 std::string getLatestVersion();
27 int compareVersions(std::string v1, std::string v2);
28
29 private:
30 std::vector<std::string> split(const std::string& value);
31 std::string url;
32 struct curl_slist* headers;
33};
34
35#endif
Github releases update checker.
Definition: updater.h:22
std::string getLatestVersion()
Get GitHub latest release version code.
Definition: updater.cpp:70
~Updater()
Destructor.
Definition: updater.cpp:61
int compareVersions(std::string v1, std::string v2)
Compare 2 version codes.
Definition: updater.cpp:103
Updater(std::string url, struct curl_slist *headers)
Constructor.
Definition: updater.cpp:52