mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
44 lines
846 B
C++
44 lines
846 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QtGlobal>
|
|
|
|
#define CHATTERINO_VERSION "2.2.3-beta"
|
|
|
|
#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();
|
|
|
|
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_;
|
|
};
|
|
|
|
}; // namespace chatterino
|