mirror-chatterino2/src/common/Version.hpp

44 lines
847 B
C++
Raw Normal View History

#pragma once
2019-10-07 18:57:33 +02:00
#include <QString>
#include <QtGlobal>
2020-11-17 10:43:16 +01:00
#define CHATTERINO_VERSION "2.2.3-beta2"
#if defined(Q_OS_WIN)
# define CHATTERINO_OS "win"
#elif defined(Q_OS_MACOS)
# define CHATTERINO_OS "macos"
#elif defined(Q_OS_LINUX)
# define CHATTERINO_OS "linux"
#elif defined(Q_OS_FREEBSD)
# define CHATTERINO_OS "freebsd"
#else
# define CHATTERINO_OS "unknown"
#endif
namespace chatterino {
class Version
{
public:
static const Version &instance();
2019-10-07 22:29:35 +02:00
const QString &version() const;
const QString &commitHash() const;
const QString &dateOfBuild() const;
const QString &fullVersion() const;
const bool &isSupportedOS() const;
private:
Version();
QString version_;
QString commitHash_;
QString dateOfBuild_;
QString fullVersion_;
bool isSupportedOS_;
};
2019-09-22 16:59:51 +02:00
}; // namespace chatterino