diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2010-10-19 00:19:32 +0400 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2010-10-19 01:38:21 +0400 |
commit | 65e4071055b216ece3205f7d3448deeedfac0b82 (patch) | |
tree | d58eff688845bdf5623734de572e23a545d5c236 /src/Version.h | |
parent | de1fa344a255693dbc7bc2a4f583da16c547ce59 (diff) |
Switch VAD default from SnR to Amplitude and adjust UI accordingly. Run audio wizard without asking first. Add update counter to config for future updates. Add abstraction for Version query/parsing.
Diffstat (limited to 'src/Version.h')
-rw-r--r-- | src/Version.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Version.h b/src/Version.h index 5c643080f..f210d3a00 100644 --- a/src/Version.h +++ b/src/Version.h @@ -1,4 +1,5 @@ /* Copyright (C) 2005-2010, Thorvald Natvig <thorvald@natvig.com> + Copyright (C) 2010, Stefan Hacker <dd0t@users.sourceforge.net> All rights reserved. @@ -40,4 +41,16 @@ #define MUMBLE_RELEASE MUMTEXT(MUMBLE_VERSION) #endif +class QString; +class QLatin1String; + +class MumbleVersion { +public: + static unsigned int getRaw(const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION_STRING))); + static bool get(int *major, int *minor, int *patch, const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION_STRING))); + + static unsigned int toRaw(int major, int minor, int patch); + static void fromRaw(unsigned int version, int *major, int *minor, int *patch); +}; + #endif |