2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-07 18:57:33 +02:00
|
|
|
#include <QString>
|
2019-09-08 22:27:57 +02:00
|
|
|
#include <QtGlobal>
|
|
|
|
|
2019-12-26 22:18:46 +01:00
|
|
|
#define CHATTERINO_VERSION "2.1.6"
|
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:
|
2019-10-07 22:42:34 +02:00
|
|
|
static const Version &instance();
|
2019-09-16 18:35:51 +02:00
|
|
|
|
2019-10-07 22:29:35 +02:00
|
|
|
const QString &version() const;
|
|
|
|
const QString &commitHash() const;
|
|
|
|
const QString &dateOfBuild() const;
|
|
|
|
const QString &fullVersion() const;
|
2019-09-16 18:35:51 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Version();
|
|
|
|
|
|
|
|
QString version_;
|
|
|
|
QString commitHash_;
|
|
|
|
QString dateOfBuild_;
|
|
|
|
QString fullVersion_;
|
|
|
|
};
|
|
|
|
|
2019-09-22 16:59:51 +02:00
|
|
|
}; // namespace chatterino
|