mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Apparently the first commit (59ae429972)
did not include all files.
Furthermore the used script tended to produce funny results in certain
cases. This has been fixed and as a result thereof a few more changes
were made in this second run.
35 lines
812 B
C
35 lines
812 B
C
// Copyright 2017-2021 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_BAN_H_
|
|
#define MUMBLE_BAN_H_
|
|
|
|
#include "HostAddress.h"
|
|
|
|
#include <QtCore/QDateTime>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QtGlobal>
|
|
#include <QtNetwork/QHostAddress>
|
|
#include <QtNetwork/Q_IPV6ADDR>
|
|
|
|
struct Ban {
|
|
HostAddress haAddress;
|
|
int iMask;
|
|
QString qsUsername;
|
|
QString qsHash;
|
|
QString qsReason;
|
|
QDateTime qdtStart;
|
|
unsigned int iDuration;
|
|
bool isExpired() const;
|
|
bool isValid() const;
|
|
bool operator<(const Ban &) const;
|
|
bool operator==(const Ban &) const;
|
|
QString toString() const;
|
|
};
|
|
|
|
quint32 qHash(const Ban &);
|
|
|
|
#endif
|