1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifndef MUMBLE_MUMBLE_USERINFORMATION_H_
7 #define MUMBLE_MUMBLE_USERINFORMATION_H_
8 
9 #include <QtNetwork/QSslCertificate>
10 
11 #include "Message.h"
12 
13 #include "ui_UserInformation.h"
14 
15 namespace MumbleProto {
16 class UserStats;
17 }
18 
19 class QTimer;
20 
21 class UserInformation : public QDialog, Ui::UserInformation {
22 	private:
23 		Q_OBJECT
24 		Q_DISABLE_COPY(UserInformation)
25 	protected:
26 		bool bRequested;
27 		unsigned int uiSession;
28 		QTimer *qtTimer;
29 		QList<QSslCertificate> qlCerts;
30 		static QString secsToString(unsigned int secs);
31 		QFont qfCertificateFont;
32 	protected slots:
33 		void tick();
34 		void on_qpbCertificate_clicked();
35 	public:
36 		UserInformation(const MumbleProto::UserStats &msg, QWidget *p = NULL);
37 		void update(const MumbleProto::UserStats &msg);
38 		unsigned int session() const;
39 };
40 
41 #endif
42