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:
parent
f292bb28d9
commit
97a675dbf5
@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
@ -58,6 +58,8 @@ public:
|
||||
const QString toJson() const;
|
||||
static const SipInfo fromJson( QString json );
|
||||
|
||||
const QString debugString() const;
|
||||
|
||||
private:
|
||||
QSharedDataPointer<SipInfoPrivate> d;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user