[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kioslave implementation help
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2012-03-17 16:06:31
Message-ID: 3348360.PFujjbuOox () xps
[Download RAW message or body]

El Dimecres, 14 de mar=E7 de 2012, a les 10:59:44, fluca1978@infinito.it va =

escriure:
> Hi all,

Hi

> =

> I'm trying to implement a simple kioslave, but I don't understand well the
> lifecycle and therefore how the slave should behave.
> =

> If I get it right, the get() method is called each time a specific URL mu=
st
> be retrieved (e.g., a local file), while listDir and stat each time a fol=
der
> content must be shown. Now, what I'd like to make into my slave is that
> when the root URL is called, a list of virtual folder is shown. Therefore=
 I
> placed my simple implementation of listDir and stat as follows:
> =

> code snip =

>
> However I don't undestand how to force konqueror to list dirs when the ro=
ot
> URL is placed into the address bar (e.g., rolefs:///), since the get meth=
od
> is the only one called. I've had a look at the audiocd slave implementati=
on,
> that is similar to mine, but I don't understand how to instrument the get=
()
> method to force a directory listing instead of a single data retrieval. C=
an
> anybody point me to the solution?

Do you have the listing entry in your .protocol file?

Albert

> =

> =

> Thanks,
> =

> Luca

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic