Ignore:
Timestamp:
Feb 6, 2011, 5:30:46 PM (11 years ago)
Author:
jordan
Message:

(trunk) #3675 "Not all .part files are removed" -- handle trashing files via RPC.

When libtransmission gets a "remove torrent" request from RPC, it tries to delegate the work. This is because the GTK+ and Mac clients don't want torrents disappearing in a different thread and causing possible thread issues. So the GTK+ and Mac clients get notification about this via libtransmission's RPC callback and remove the torrents themselves. Unfortunately, that notification doesn't include information about whether or not to delete local data.

This commit adds that information to the RPC callback so that the Mac and GTK+ clients will know whether or not to trash the local files when a third-party RPC client requests that at torrent and its files be deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r11812 r11834  
    498498    TR_RPC_TORRENT_STOPPED,
    499499    TR_RPC_TORRENT_REMOVING,
     500    TR_RPC_TORRENT_TRASHING, /* _REMOVING + delete local data */
    500501    TR_RPC_TORRENT_CHANGED, /* catch-all for the "torrent-set" rpc method */
    501502    TR_RPC_TORRENT_MOVED,
Note: See TracChangeset for help on using the changeset viewer.