5 void _k_slotHttpGetResult( KJob
* job
);
6 void _k_slotData(KIO::Job
*, const QByteArray
&);
9 KTemporaryFile tmpFile
;
15 KIO::TransferJob
* job
= KIO::get( d
->ontoNamespace
);
16 connect( job
, SIGNAL(result(KJob
*)),
17 this, SLOT(_k_slotHttpGetResult(KJob
*)) );
18 connect( job
, SIGNAL(data(KIO::Job
*, const QByteArray
&)),
19 this, SLOT(_k_slotData(KIO::Job
*, const QByteArray
&)) );
24 void Private::_k_data( KIO::Job
*, const QByteArray
& data
)
26 if( !d
->tmpFile
.isOpen() ) {
30 d
->tmpFile
.write( data
);
34 void Private::_k_slotHttpGetResult( KJob
* job
)
39 QString mimeType
= job
->mimetype();
40 const Soprano::Parser
* parser
=
41 Soprano::PluginManager::instance()->discoverParserForSerialization( Soprano::mimeTypeToSerialization( mimetype
),
44 Soprano::StatementIterator it
= parser
->parseFile( d
->tmpFile
.fileName(),
46 Soprano::mimeTypeToSerialization( mimetype
),
51 // FIXME: report error: unable to handle data of type XXX
55 // FIXME: report http error