El Dijous, 22 de mar=E7 de 2012, a les 17:38:52, fluca1978@infinito.it va = escriure: > > Do you have the listing entry in your .protocol file? > = > The following is my protocol file: > = > [Protocol] > DocPath=3Dkioslave/kio_rolefs.html > exec=3Dkio_rolefs > input=3Dnone > output=3Dfilesystem > protocol=3Drolefs > reading=3Dtrue > Icon=3Dfolder > listing=3DName,Type > = > so I guess the listing entry is right. I've tried to change the list meth= od > to force emitting the folders (that I have saved into a QList): > = > void RoleFS::listDir( const KUrl& url ){ > kDebug(7000) << "[Entering RoleFS::listDir] URL =3D " << > url.toMimeDataString(); > = > for( int i =3D 0; i < rootFolders.size(); i++ ){ > KIO::UDSEntry& dirEntry =3D *(rootFolders.at( i )); > // emit a signal to list this entry > listEntry( dirEntry, true ); > } > = > //totalSize( rootFolders.size() ); > data( QByteArray() ); > finished(); > kDebug(7000) << "[Exiting RoleFS::listDir]"; > } > = > However this still does not work. My get method is almost empty: > = > void RoleFS::get( const KUrl &url ){ > kDebug(7000) << "[Entering RoleFS::get] URL =3D " << > url.toMimeDataString(); > = > finished(); // success > = > = > kDebug(7000) << "[Exiting RoleFS::get]"; > } > = > Am I doing something wrong? Without looking at the code, don't know. But no, don't send me the code, yo= u = said yourself that you wanted to do something similar to what audiocd:/ doe= s, = so get the code of audiocd and start stripping it down and modifying it unt= il = it does what you want. And then you'll find the difference with yours. Cheers, Albert > = > Thanks, > Luca > = > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscr= ibe > >> << >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib= e <<