1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

Add debug helper method to SipInfo

This commit is contained in:
Dominik Schmidt 2013-01-16 02:30:10 +01:00
parent f292bb28d9
commit 97a675dbf5
2 changed files with 14 additions and 0 deletions

View File

@ -272,3 +272,15 @@ bool operator==( const SipInfo& one, const SipInfo& two )
return false;
}
const QString
SipInfo::debugString() const
{
QString debugString( "SIP INFO: visible: %1 host: host %2 port: %3 nodeid: %4 key: %5" );
return debugString.arg( d->visible.toBool() )
.arg( d->host )
.arg( d->port )
.arg( d->uniqname )
.arg( d->key );
}

View File

@ -58,6 +58,8 @@ public:
const QString toJson() const;
static const SipInfo fromJson( QString json );
const QString debugString() const;
private:
QSharedDataPointer<SipInfoPrivate> d;
};