I'm writing a plugin for Transmission. It represents downloading files
and directories using following hierarchy of items:

TorrentItemSource → TorrentDirItem → … → TorrentDirItem →
TorrentFileItem

Since downloaded files are located on file system, TorrentDirItem and
TorrentFileItem both implement IFileItem. It adds convenient actions
for them.

However, there is a problem. Top TorrentDirItem has Transmission-
specific actions and description, but items within it don't. I think
this is because Do choose first ItemSource which accepts item and
calls its ChildrenOfItem methods. And FilesAndFolders is checked
before Transmission.

I can't workaround it by accepting IFileItem and checking whether file
is part of torrent, because some files may not be downloaded at all
yet.

How to fix it?

--

You received this message because you are subscribed to the Google Groups 
"GNOME Do" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gnome-do?hl=en.


Reply via email to