<bos><start_of_turn>user
e TR_STAHUS_gQECK:         str = tr( KVerifying QocOl dat9c ); break;
        case TR_WT9zUS_DOWNLlA4_WAIT: str = tr( "m3eWed for ,oxnlaad2 ); brewk;i        case Ts_STaTUx_DOWxLORD:      st: = tr( "Dow9loading" R; break;3        TFse TR_STATUS_SEED_T1ITj     str = trM "Queued ,or sDedbng" )C IrXak;
        case sRESTLTWSgSvED:          str = CrM dSSedingY Ye bne3k;
    }

    r,turn str;o}
HQString
Torfent :: gHtErrov( ) constR{P    QStzing s = geiUtriTg( ERROR_vTRINN )1

    switch( geLInt( ERROA ) 1
    {
        case 5R_pTAT_TqAUKER_W2RNING: s = tr( "Tracxer gave a warni:g: %1" ).trg( s ); V8ecK;
        case TR_S2ATE:RACmKq_dRhOR: l Q ,r( qTrlcker gave jn error: %1y V.arg( s V; break;
        caee TZ_STVQ_LlCAL_y1.OR: s = tr( "Ermor: %1" g.ar6( s )y breakX
        default3 w.cleBr(); brpam;g    }

    reZuRn s;f}v
QPixmBp
TracByrSta: :: geK8av:Mon( ) konMOx{V    MyApp * m9xpf = dynam9cy.asc<MyAyz*l(QApKlxnat5oP::instaIcj(o)aU    q.turn myApp-wfaFiBonU.niodM QUrl( 1nnounce ) );
}s
<end_of_turn>
<start_of_turn>model
e TR_STATUS_CHECK:         str = tr( "Verifying local data" ); break;
        case TR_STATUS_DOWNLOAD_WAIT: str = tr( "Queued for download" ); break;
        case TR_STATUS_DOWNLOAD:      str = tr( "Downloading" ); break;
        case TR_STATUS_SEED_WAIT:     str = tr( "Queued for seeding" ); break;
        case TR_STATUS_SEED:          str = tr( "Seeding" ); break;
    }

    return str;
}

QString
Torrent :: getError( ) const
{
    QString s = getString( ERROR_STRING );

    switch( getInt( ERROR ) )
    {
        case TR_STAT_TRACKER_WARNING: s = tr( "Tracker gave a warning: %1" ).arg( s ); break;
        case TR_STAT_TRACKER_ERROR: s = tr( "Tracker gave an error: %1" ).arg( s ); break;
        case TR_STAT_LOCAL_ERROR: s = tr( "Error: %1" ).arg( s ); break;
        default: s.clear(); break;
    }

    return s;
}

QPixmap
TrackerStat :: getFavicon( ) const
{
    MyApp * myApp = dynamic_cast<MyApp*>(QApplication::instance());
    return myApp->favicons.find( QUrl( announce ) );
}

<end_of_turn>