Nepomuk-Core
Go to the documentation of this file.
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 ),
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.