[Kget] how to use the new mirror search plugin

l.appelhans at gmx.de l.appelhans at gmx.de
Tue Jan 15 12:49:02 CET 2008


Am Montag 14 Januar 2008 22:23:22 schrieb Manolo Valdes:
> 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
Yeah, thx for this, I will implement this to the BT-Plugin when I have 
multi-source downloading running :)

Lukas
>
> cheers
> Manolito




More information about the Kget mailing list