mumble-voip_mumble/src/mumble/UserInformation.h

41 lines
1003 B
C++

// Copyright 2010-2023 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_USERINFORMATION_H_
#define MUMBLE_MUMBLE_USERINFORMATION_H_
#include <QtNetwork/QSslCertificate>
#include "ui_UserInformation.h"
namespace MumbleProto {
class UserStats;
}
class QTimer;
class UserInformation : public QDialog, Ui::UserInformation {
private:
Q_OBJECT
Q_DISABLE_COPY(UserInformation)
protected:
bool bRequested;
unsigned int uiSession;
QTimer *qtTimer;
QList< QSslCertificate > qlCerts;
static QString secsToString(unsigned int secs);
QFont qfCertificateFont;
protected slots:
void tick();
void on_qpbCertificate_clicked();
public:
UserInformation(const MumbleProto::UserStats &msg, QWidget *p = nullptr);
void update(const MumbleProto::UserStats &msg);
unsigned int session() const;
};
#endif