- (void) rpcCallback: (tr_rpc_callback_type) type forTorrentStruct: (struct tr_torrent *) torrentStruct;
- (void) rpcAddTorrentStruct: (struct tr_torrent *) torrentStruct;
-- (void) rpcRemoveTorrent: (Torrent *) torrent;
-- (void) rpcRemoveTorrentDeleteData: (Torrent *) torrent;
+- (void) rpcRemoveTorrent: (Torrent *) torrent deleteData: (BOOL) deleteData;
- (void) rpcStartedStoppedTorrent: (Torrent *) torrent;
- (void) rpcChangedTorrent: (Torrent *) torrent;
- (void) rpcMovedTorrent: (Torrent *) torrent;
break;
case TR_RPC_TORRENT_REMOVING:
- [self rpcRemoveTorrent: torrent];
+ [self rpcRemoveTorrent: torrent deleteData: NO];
break;
case TR_RPC_TORRENT_TRASHING:
- [self rpcRemoveTorrentDeleteData: torrent];
+ [self rpcRemoveTorrent: torrent deleteData: YES];
break;
case TR_RPC_TORRENT_CHANGED:
[self fullUpdateUI];
}
-- (void) rpcRemoveTorrent: (Torrent *) torrent
+- (void) rpcRemoveTorrent: (Torrent *) torrent deleteData: (BOOL) deleteData
{
- [self confirmRemoveTorrents: @[ torrent ] deleteData: NO];
-}
-
-- (void) rpcRemoveTorrentDeleteData: (Torrent *) torrent
-{
- [self confirmRemoveTorrents: @[ torrent ] deleteData: YES];
+ [self confirmRemoveTorrents: @[ torrent ] deleteData: deleteData];
}
- (void) rpcStartedStoppedTorrent: (Torrent *) torrent