From kde-devel Thu Aug 25 08:19:51 2005 From: =?ISO-8859-1?Q?Andr=E9s_Ot=F3n?= Date: Thu, 25 Aug 2005 08:19:51 +0000 To: kde-devel Subject: Re: Konqueror ask by actions before to do call get of kioslave Message-Id: <8607ec9a05082501198703ca9 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=112495807729376 Hello Kevin: On 8/25/05, Kevin Krammer wrote: > On Wednesday 24 August 2005 20:31, Andrés Otón wrote: > > > > Konqueror already knows the MIME type from the listDir call > > > > This is correct too but the documentation of kioslave say that > > mimetype has to be call when get is do it the before as possible to > > the application known the mimetype of the data gets. > > Can you give me a link for that? > Sounds pretty stupid to do two get calls for the same object if you can > avoid > it. From: http://developer.kde.org/documentation/library/3.4-api/kio/html/classKIO_1_1SlaveBase.html At: void SlaveBase::mimeType ( const QString & _type ) Call this in mimetype() and in get(), when you know the mimetype. See mimetype about other ways to implement it. > > The problem is that konqueror suppouse that the data received has the > > mimetype of the file that it is try to get, but this has not to be > > correct. The data get can to have a different mimetype but many > > circumstances. > > In how many situations would a filesystem object change its MIME type? > I don't know how many situations it can happen but avoid this possibility I think that is not correct. > > > Wouldn't it be better to only browse the media files accessible by NMM > > > with > > > > > > the IO slave and play them using a player built on NNM? > > > > The player is done. But I only want open the files that have url > > nmm:// only. is possible associated all open files with url nmm://* to > > a application? > > You can register an application for a protocol just like an IO slave. > > You could also return your own MIME types and have your player registered > for > them. This would allow to browse with the IO slave and still play in a > player. > The problem of this solutions is that my protocol then need a copy of all mime types to work correctly. > > Althought this las could be possible I think that konqueror has not a > > correct behaviour. > > If you suspect a Konqueror misbehaviour (also I doubt it), you could ask in > > kfm-devel > Be sure to include a link to this thread (archives of kde-devel) > Ok, I try to post at that list. > Cheers, > Kevin Regards. -- Bitácora: http://territoriodunedain.blogspot.com ---------------------------------------------------------------------- | Andrés Otón Urbano | Jabber:Baxas en bulmalug.net| | Estudiante Ing. de Telecomunicación | Linux User: 297070 | | Universidad Politecnica de Cartagena | andres.oton en gmail.com | ---------------------------------------------------------------------- -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o - ¿Lastima? Sí, fue lastima lo que detuvo la mano de Bilbo. Lastima y misericordia: no matar sin necesidad. -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o - Muchos de los que viven merecen morir y algunos de los que mueren merecen la vida. ¿Puedes devolver la vida?. Entonces no te apresures a dispensar la muerte, pues ni el más sabio conoce el fin de todos los caminos. -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<