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

BanEditor.h « mumble « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76895a22fea34cda9edde961d02411af10c4a089 (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
41
42
43
44
45
46
47
// 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_MUMBLE_BANEDITOR_H_
#define MUMBLE_MUMBLE_BANEDITOR_H_

#include "Ban.h"

#include "ui_BanEditor.h"

namespace MumbleProto {
class BanList;
}

class BanEditor : public QDialog, public Ui::BanEditor {
private:
	Q_OBJECT
	Q_DISABLE_COPY(BanEditor)
protected:
	QList< Ban > qlBans;

	int maskDefaultValue;

	Ban toBan(bool &);

public:
	BanEditor(const MumbleProto::BanList &msbl, QWidget *p = nullptr);
public slots:
	void accept();
	void on_qlwBans_currentRowChanged();
	void on_qpbAdd_clicked();
	void on_qpbUpdate_clicked();
	void on_qpbRemove_clicked();
	void refreshBanList();
	void on_qdteEnd_editingFinished();
	void on_qpbClear_clicked();
private slots:
	void on_qleHash_textChanged(QString);
	void on_qleSearch_textChanged(const QString &match);
	void on_qleReason_textChanged(QString);
	void on_qleIP_textChanged(QString);
	void on_qleUser_textChanged(QString);
};

#endif