 |
LicenseSpring C++ SDK
Easily add Software Licensing to your application
|
Go to the documentation of this file. 1 #ifndef LS_INSTALLATION_FILE_H
2 #define LS_INSTALLATION_FILE_H
7 #pragma warning(disable : 4251)
29 if (channel !=
nullptr)
39 : Channel(channel), Environment(env)
59 using ptr_t = std::shared_ptr<InstallationFile>;
76 const std::string &requiredVersion,
const std::string &md5hash,
77 const std::string &releaseDate,
const std::string &environment,
const std::string &eulaLink,
78 const std::string &releaseNotesLink,
const std::string &channel, uint64_t size)
79 : m_url(url), m_version(version), m_requiredVersion(requiredVersion), m_md5hash(md5hash),
80 m_releaseDate(releaseDate), m_environment(environment), m_eulaLink(eulaLink),
81 m_releaseNotesLink(releaseNotesLink), m_channel(channel), m_size(size) {};
85 const std::string &
url()
const {
return m_url; }
89 const std::string &
version()
const {
return m_version; }
98 const std::string &
md5Hash()
const {
return m_md5hash; }
110 const std::string &
eulaLink()
const {
return m_eulaLink; }
118 const std::string &
channel()
const {
return m_channel; }
122 uint64_t
size()
const {
return m_size; }
126 std::string m_version;
127 std::string m_requiredVersion;
128 std::string m_md5hash;
129 std::string m_releaseDate;
130 std::string m_environment;
131 std::string m_eulaLink;
132 std::string m_releaseNotesLink;
133 std::string m_channel;
142 #endif // LS_INSTALLATION_FILE_H
std::string Environment
Environment for which installation file should be requested.
Helper struct for filtering installation files by environment and channel.
const std::string & md5Hash() const
Getter method for setup file MD5 hash.
InstallationFile()
Default constructor, creates empty installation file.
const std::string & version() const
Getter method for setup file version.
const std::string & channel() const
Getter method for setup file channel.
const std::string & releaseDate() const
Getter method for setup file release date.
Class that represents information on product installation file.
const std::string & requiredVersion() const
Getter method for setup file required version.
InstallFileFilter(const char *channel, const char *env=nullptr)
Constructs filter with given channel and environment from c-strings.
const std::string & environment() const
Getter method for setup file environment.
InstallFileFilter(const std::string &channel, const std::string &env=std::string())
Constructs filter with given channel and environment.
const std::string & eulaLink() const
Getter method for setup file End-User License Agreement link.
const std::string & releaseNotesLink() const
Getter method for setup file release notes link.
std::string Channel
Channel from where installation file should be requested.
std::shared_ptr< InstallationFile > ptr_t
InstallationFile(const std::string &url, const std::string &version, const std::string &requiredVersion, const std::string &md5hash, const std::string &releaseDate, const std::string &environment, const std::string &eulaLink, const std::string &releaseNotesLink, const std::string &channel, uint64_t size)
Constructs InstallationFile with given data.
uint64_t size() const
Getter method for setup file size.
const std::string & url() const
Getter method for setup file URL.