mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Add debug helper method to SipInfo
This commit is contained in:
@@ -272,3 +272,15 @@ bool operator==( const SipInfo& one, const SipInfo& two )
|
|||||||
return false;
|
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;
|
const QString toJson() const;
|
||||||
static const SipInfo fromJson( QString json );
|
static const SipInfo fromJson( QString json );
|
||||||
|
|
||||||
|
const QString debugString() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QSharedDataPointer<SipInfoPrivate> d;
|
QSharedDataPointer<SipInfoPrivate> d;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user