From kde-core-devel Thu Jun 29 21:00:30 2000 From: Waldo Bastian Date: Thu, 29 Jun 2000 21:00:30 +0000 To: kde-core-devel Subject: Re: Extensions to the HTTP slave. X-MARC-Message: https://marc.info/?l=kde-core-devel&m=96231243016960 On Thu, 29 Jun 2000, David Faure wrote: > On Thu, Jun 29, 2000 at 02:44:02PM -0700, Waldo Bastian wrote: > > [Good stuff snipped :) ] > > > A convenient way to represent the metaData would be a "QMap > QString>". > > Interesting... in kparts/khtml/.. (see KParts::Factory::createPart), the > solution that was decided for (to pass arguments to a part) is a simple > QStringList, where each string is arg="value". But that's very HTML like, > maybe not what you want here. A QMap basically does the same, only it's easier to lookup. (No parsing involved) > > The metaData could also be used as replacement for the current "reload" > > flag. > > Hmm, I'd rather leave it as a bool, makes it easier to handle. > (Including in case other protocols implement a cache...) It would be something like this in konqueror: setMetadata("reload", "true") and in the slave: bool reload = (metadata("reload") == "true"); Cheers, Waldo -- Make way, KDE/Linux is coming to a desktop near you!