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

Group.h « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 162c851112117c6646673ef43b5a6e6cd1e63d22 (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
40
// Copyright 2007-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_GROUP_H_
#define MUMBLE_GROUP_H_

#include <QtCore/QSet>

class Channel;
class User;
class ServerUser;

class Group {
private:
	Q_DISABLE_COPY(Group)
public:
	/// A flag indicating whether access tokens shall be treated case-sensitive or case-insensitive
	static const Qt::CaseSensitivity accessTokenCaseSensitivity;

	Channel *c;
	QString qsName;
	bool bInherit;
	bool bInheritable;
	QSet< int > qsAdd;
	QSet< int > qsRemove;
	QSet< int > qsTemporary;
	Group(Channel *assoc, const QString &name);

#ifdef MURMUR
	QSet< int > members();
	static QSet< QString > groupNames(Channel *c);
	static Group *getGroup(Channel *c, QString name);

	static bool isMember(Channel *c, Channel *aclChan, QString name, ServerUser *);
#endif
};

#endif