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

The following is my protocol file:

[Protocol]
DocPath=kioslave/kio_rolefs.html
exec=kio_rolefs
input=none
output=filesystem
protocol=rolefs
reading=true
Icon=folder
listing=Name,Type

so I guess the listing entry is right. I've tried to change the list method
to force emitting the folders (that I have saved into a QList):

void RoleFS::listDir( const KUrl& url ){
  kDebug(7000) <<  "[Entering RoleFS::listDir] URL = " <<
url.toMimeDataString();

  for( int i = 0; i < rootFolders.size(); i++ ){
      KIO::UDSEntry& dirEntry = *(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 = " <<
url.toMimeDataString();
  
  finished(); // success

  
  kDebug(7000) <<  "[Exiting RoleFS::get]";
}

Am I doing something wrong?

Thanks,
Luca




>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to