コード例 #1
0
ファイル: QXmppRemoteMethod.cpp プロジェクト: chloerei/qxmpp
void QXmppRemoteMethod::gotResult( const QXmppRpcResponseIq &iq )
{
    if ( iq.id() == m_payload.id() )
    {
        m_result.hasError = false;
        m_result.result = iq.getPayload();
        emit callDone();
    }
}
コード例 #2
0
void QXmppRemoteMethod::gotResult( const QXmppRpcResponseIq &iq )
{
    if ( iq.id() == m_payload.id() )
    {
        m_result.hasError = false;
        // FIXME: we don't handle multiple responses
        m_result.result = iq.values().first();
        emit callDone();
    }
}