mirror-chatterino2/src/common/Version.hpp
2019-12-26 22:18:46 +01:00

40 lines
713 B
C++

#pragma once
#include <QString>
#include <QtGlobal>
#define CHATTERINO_VERSION "2.1.6"
#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"
#else
# define CHATTERINO_OS "unknown"
#endif
namespace chatterino {
class Version
{
public:
static const Version &instance();
const QString &version() const;
const QString &commitHash() const;
const QString &dateOfBuild() const;
const QString &fullVersion() const;
private:
Version();
QString version_;
QString commitHash_;
QString dateOfBuild_;
QString fullVersion_;
};
}; // namespace chatterino