conversion of KIO::CMD_xxx to literal?

Waldo Bastian bastian at kde.org
Thu Feb 6 14:57:01 GMT 2003


On Thursday 06 February 2003 15:29, Leo Savernik wrote:
> While I'm at it: My data slave only emits error messages of the form:
> 	Command nn not applicable to data urls
> where nn is the number of the command's CMD_xxx code.
>
> Is there any function that returns an "xxx" literal for CMD_xxx, e. g.
> returns "GET" for CMD_GET? I couldn't find one by skimming through
> kdelibs/kio/kio. If not, does anybody mind if I write one?

Hm, such error messages aren't terribly informing. You may want to try to 
re-use the default implementations of said functions in SlaveBase, they all 
return ERR_UNSUPPORTED_ACTION with an error message in terms that a user 
might be able to understand. 

Cheers,
Waldo
-- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com





More information about the kfm-devel mailing list