Welcome to mirror list, hosted at ThFree Co, Russian Federation.

License.h « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d20ea64b80d63571fa90fc9fedb46333c8684e5e (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
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2016-2022 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_LICENSE_H_
#define MUMBLE_LICENSE_H_

#include <QList>
#include <QString>

/// LicenseInfo represents license information
/// for a third-party library used by Mumble.
struct LicenseInfo {
	/// The name of the third-party library.
	QString name;
	/// A URL for the website of the third-party library.
	QString url;
	/// The license text for the third-party library.
	QString license;
};

/// The License class contains static helpers for
/// getting Mumble license/author information.
class License {
public:
	/// Get the Mumble license text (the LICENSE file)
	static QString license();
	/// Get the Mumble authors list (the AUTHORS file)
	static QString authors();
	/// Get a list of license information for Mumble's
	/// third-party libraries.
	static QList< LicenseInfo > thirdPartyLicenses();
	/// Get a human-readable, ready-to-print combination
	/// of all of Mumble's third-party license information.
	static QString printableThirdPartyLicenseInfo();
};

#endif