2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
2019-09-15 19:32:31 +02:00
|
|
|
#define CHATTERINO_VERSION "2.1.4"
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
#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
|
2019-09-16 18:35:51 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class Version
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static const Version &getInstance();
|
|
|
|
|
|
|
|
const QString &getVersion() const;
|
|
|
|
const QString &getCommitHash() const;
|
|
|
|
const QString &getDateOfBuild() const;
|
|
|
|
const QString &getFullVersion() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Version();
|
|
|
|
|
|
|
|
QString version_;
|
|
|
|
QString commitHash_;
|
|
|
|
QString dateOfBuild_;
|
|
|
|
QString fullVersion_;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|