private/RequestHandlerPrivate.cpp
/** ************************************************************************************************
    * @brief        Function called when a reply to getCurrentPlaybackInformation is received.
    ***************************************************************************************************/
@brief        Function called when a reply to getCurrentPlaybackInformation is received.
@brief Function called when a reply to getCurrentPlaybackInformation is received .
void RequestHandlerPrivate::onGetCurrentPlaybackInformationReceived()
    {
        if (QNetworkReply *reply = qobject_cast<QNetworkReply*>(QObject::sender()))
        {
            if (reply->error() != QNetworkReply::NoError)
            {
                handleRegularError(ErrorContext::Context_GetCurrentPlaybackReply, reply->readAll());
            }
            else
            {
                emit currentPlaybackUpdated(QSharedPointer<CurrentPlayback>(new CurrentPlayback(QJsonDocument::fromJson(reply->readAll()).object())));
            }
            reply->deleteLater();
        }
    }
void RequestHandlerPrivate :: onGetCurrentPlaybackInformationReceived ( ) { if ( QNetworkReply * reply = qobject_cast < QNetworkReply * > ( QObject :: sender ( ) ) ) { if ( reply -> error ( ) != QNetworkReply :: NoError ) { handleRegularError ( ErrorContext :: Context_GetCurrentPlaybackReply , reply -> readAll ( ) ) ; } else { emit currentPlaybackUpdated ( QSharedPointer < CurrentPlayback > ( new CurrentPlayback ( QJsonDocument :: fromJson ( reply -> readAll ( ) ) . object ( ) ) ) ) ; } reply -> deleteLater ( ) ; } }
@brief        Function called when a reply to getCurrentPlaybackInformation is received.
@brief Function called when a reply to getCurrentPlaybackInformation is received .