blob: 59b64df7abfbf3fb634646221984c7e48802153e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2005-2016 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_VERSION_H_
#define MUMBLE_VERSION_H_
#define MUMXTEXT(X) #X
#define MUMTEXT(X) MUMXTEXT(X)
#ifndef MUMBLE_VERSION
#define MUMBLE_RELEASE "Compiled by User"
#else
#define MUMBLE_RELEASE MUMTEXT(MUMBLE_VERSION)
#endif
class MumbleVersion {
public:
static unsigned int getRaw(const QString &version = QLatin1String(MUMTEXT(MUMBLE_VERSION_STRING)));
static QString toString(unsigned int version);
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
|