diff --git a/src/diagnosticsdialog.cpp b/src/diagnosticsdialog.cpp index 8fc801059..213d32bdd 100644 --- a/src/diagnosticsdialog.cpp +++ b/src/diagnosticsdialog.cpp @@ -20,6 +20,7 @@ #include "ui_diagnosticsdialog.h" #include +#include #include #include @@ -44,11 +45,40 @@ DiagnosticsDialog::DiagnosticsDialog( QWidget *parent ) void DiagnosticsDialog::updateLogView() { 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 - log.append("Sip Plugins:\n"); + log.append("SIP PLUGINS:\n"); Q_FOREACH(SipPlugin *sip, SipHandler::instance()->allPlugins()) { Q_ASSERT(sip);