conversion of KIO::CMD_xxx to literal?

David Faure dfaure at klaralvdalens-datakonsult.se
Tue Feb 11 18:34:17 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 06 February 2003 18:49, Leo Savernik wrote:
> Am Donnerstag, 6. Februar 2003 15:57 schrieb Waldo Bastian:
> > On Thursday 06 February 2003 15:29, Leo Savernik wrote:
> [...]
> > > 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.
> [...]
> 
> Fine with me, but I have to duplicate the error messages then. KIO::DataSlave 
> is in no way associated with KIO::SlaveBase, so I can't use its default 
> functions there :-(

Then maybe you want to move the messages from SlaveBase to global.*
(into a new public static method) and use them from both SlaveBase and DataSlave.

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SUIp72KcVAmwbhARAgmeAJ9M7zP3ucE7ahdLBhf9QCuNVKAkzwCfQTsI
e0JIY9gMlGGkB+xq7YgG7ho=
=/KBh
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list