[Kget] how to use the new mirror search plugin
Manolo Valdes
nolis71cu at gmail.com
Mon Jan 14 22:23:22 CET 2008
Hi Guys
This plugin wont interact with the user. it implemets the new
transferdatasource interface, that is for inter plugin data exchange. so:
<code>
KUrl m_url = KUrl("search://somefilename.torrent");
transferdatasource *searchEngine = KGet::createTransferDataSource(m_url );
if (searchEngine)
{
connect(searchEngine,SIGNAL(data( const QList<KUrl>
&)),SLOT(slotSearchResult(const QList<KUrl> &));
searchEngine->start();
}
</code>
note that search:// is a bogus protocol needed to return the search engine
datasource.
hope this help
cheers
Manolito
--
Porque el ocuparse de la carne es muerte, pero el ocuparse del Espíritu es
vida y paz.
Rom. 8:6
---------------------------------------------------------
For to be carnally minded is death, but to be spiritually minded is live and
peace.
Rom. 8:6
More information about the Kget
mailing list