KIO::Job::setMetaData, but how?

Rob Kaper cap at capsi.com
Tue Apr 30 22:25:02 BST 2002


I decided that Atlantik should use it's own user agent string when fetching 
the XML server list from webservers, but apparently this doesn't work:

    KIO::Job *job = KIO::get(url.url(), true, false);

    QMap<QString, QString> metaDataMap;
    metaDataMap.insert("User-Agent", "Atlantik/" ATLANTIK_VERSION_STRING);
    job->setMetaData(KIO::MetaData(metaDataMap));

Can anyone help me out? The API reference on-line (or rather Google's cache at 
the moment) didn't help me much.

Rob
-- 
Rob Kaper     | Gimme some love, gimme some skin,
cap at capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A




More information about the kfm-devel mailing list