Files
textmate/Frameworks/SoftwareUpdate/src/sw_update.h
Allan Odgaard c65e0718e6 Show human readable version string
This is instead of only showing the revision, which lack semantic info such as ‘alpha’ and 2.0 versus 1.5.11.

We now also show the version after a successful download instead of just “Download Completed”.
2013-02-15 15:27:55 +01:00

24 lines
764 B
C++

#ifndef SW_UPDATE_H_TW02442V
#define SW_UPDATE_H_TW02442V
#include <network/network.h>
#include <oak/debug.h>
namespace sw_update
{
struct version_info_t
{
version_info_t (long revision = 0, std::string const& version = NULL_STR, std::string const& url = NULL_STR) : revision(revision), version(version), url(url) { }
long revision;
std::string version;
std::string url;
};
PUBLIC version_info_t download_info (std::string const& url, std::string* error = NULL);
PUBLIC std::string download_update (std::string const& url, key_chain_t const& keyChain, std::string* error, double* progress = NULL, bool const* stopFlag = NULL);
PUBLIC std::string install_update (std::string const& src);
}
#endif /* end of include guard: SW_UPDATE_H_TW02442V */