mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +02:00
DiagnosticsDialog: Add SipInfo (visibility, ip and port)
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include "ui_diagnosticsdialog.h"
|
#include "ui_diagnosticsdialog.h"
|
||||||
|
|
||||||
#include <sip/SipHandler.h>
|
#include <sip/SipHandler.h>
|
||||||
|
#include <network/servent.h>
|
||||||
|
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@@ -44,11 +45,40 @@ DiagnosticsDialog::DiagnosticsDialog( QWidget *parent )
|
|||||||
void DiagnosticsDialog::updateLogView()
|
void DiagnosticsDialog::updateLogView()
|
||||||
{
|
{
|
||||||
QString log(
|
QString log(
|
||||||
"Tomahawk Diagnostics Log\n\n"
|
"TOMAHAWK DIAGNOSTICS LOG\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// network
|
||||||
|
log.append(
|
||||||
|
"NETWORK:\n"
|
||||||
|
"General:\n"
|
||||||
|
);
|
||||||
|
if( Servent::instance()->visibleExternally() )
|
||||||
|
{
|
||||||
|
log.append(
|
||||||
|
QString(
|
||||||
|
"visible: true\n"
|
||||||
|
"host: %1\n"
|
||||||
|
"port: %2\n"
|
||||||
|
"\n"
|
||||||
|
).arg( Servent::instance()->externalAddress() )
|
||||||
|
.arg( Servent::instance()->externalPort() )
|
||||||
|
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log.append(
|
||||||
|
QString(
|
||||||
|
"visible: false"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
log.append("\n\n");
|
||||||
|
|
||||||
|
|
||||||
// Peers
|
// Peers
|
||||||
log.append("Sip Plugins:\n");
|
log.append("SIP PLUGINS:\n");
|
||||||
Q_FOREACH(SipPlugin *sip, SipHandler::instance()->allPlugins())
|
Q_FOREACH(SipPlugin *sip, SipHandler::instance()->allPlugins())
|
||||||
{
|
{
|
||||||
Q_ASSERT(sip);
|
Q_ASSERT(sip);
|
||||||
|
Reference in New Issue
Block a user