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: e7f44d220aaf433ea5f1eecc79c93323d0b5a4ae (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 2005-2017 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 <QString>
#include <QList>

/// 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