Changeset 5868
- Timestamp:
- May 20, 2008, 11:58:59 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/transmission-remote.1
r5861 r5868 27 27 .Op Fl q 28 28 .Oo 29 .Fl r Ar all | Ar torrent-id29 .Fl r Ar all | Ar id | Ar hash 30 30 .Oc 31 31 .Oo 32 .Fl s Ar all | Ar torrent-id32 .Fl s Ar all | Ar id | Ar hash 33 33 .Oc 34 34 .Oo 35 .Fl S Ar all | Ar torrent-id35 .Fl S Ar all | Ar id | Ar hash 36 36 .Oc 37 37 .Op Fl u Ar upload-rate 38 38 .Op Fl U 39 39 .Oo 40 .Fl V Ar all | Ar torrent-id40 .Fl v Ar all | Ar id | Ar hash 41 41 .Oc 42 42 .Ek … … 84 84 .Ar port 85 85 for use as a listening port to accept incoming peer connections. 86 .It Fl r Fl -remove Ar all | torrent-id 87 Remove all torrents, or the torrent with the unique id 88 .Ar torrent-id . 89 Neither the downloaded data nor the original torrent metainfo file 90 will be deleted. 91 .It Fl S Fl -stop Ar all | torrent-id 92 Stop all torrents from downloading or seeding, or the torrent with the unique id 93 .Ar torrent-id . 94 .It Fl s Fl -start Ar all | torrent-id 95 Start all torrents downloading or seeding, or the torrent with the unique id 96 .Ar torrent-id . 86 87 .It Fl r Fl -remove Ar all | id | torrent-hash 88 Remove all torrents, or the torrent matching the specified 89 .Ar id 90 or 91 .Ar hash . 92 This does not delete the downloaded data. 93 94 .It Fl S Fl -stop Ar all | id | torrent-hash 95 Stop all torrents from downloading or seeding, or the torrent matching the specified 96 .Ar id 97 or 98 .Ar hash . 99 100 .It Fl s Fl -start Ar all | id | torrent-hash 101 Start all torrents downloading or seeding, or the torrent matching the specified 102 .Ar id 103 or 104 .Ar hash . 105 97 106 .It Fl u Fl -upload-limit Ar upload-rate 98 107 Set maximum upload rate to 99 108 .Ar upload-rate 100 109 in kilobytes per second. 110 101 111 .It Fl U Fl -upload-unlimited 102 112 Remove the upload limit. 113 114 .It Fl v Fl -verify Ar all | id | torrent-hash 115 Queue all the torrents for verification, or the torrent matching the specified 116 .Ar id 117 or 118 .Ar hash . 103 119 104 120 .El -
trunk/doc/rpc-spec.txt
r5860 r5868 64 64 3.1. Torrent Action Requests 65 65 66 Method names: "torrent-start", "torrent-stop", 67 "torrent-remove", "torrent-verify" 66 Method name | libtransmission function 67 --------------------+------------------------------------------------- 68 "torrent-close" | tr_torrentClose 69 "torrent-remove" | tr_torrentRemove 70 "torrent-start" | tr_torrentStart 71 "torrent-stop" | tr_torrentStop 72 "torrent-verify" | tr_torrentVerify 68 73 69 74 Request arguments: "ids", a list of torrent id integers, sha1 hash strings, -
trunk/gtk/Makefile.am
r5843 r5868 33 33 torrent-cell-renderer.h \ 34 34 tr-core.h \ 35 tr-core-dbus.h \ 35 36 tr-icon.h \ 36 37 tr-io.h \ -
trunk/gtk/add-dialog.c
r5843 r5868 32 32 33 33 static void 34 deleteOldTorrent( struct AddData * data )34 removeOldTorrent( struct AddData * data ) 35 35 { 36 36 if( data->gtor ) … … 38 38 file_list_set_torrent( data->list, NULL ); 39 39 40 tr_torrent_set_ delete_flag( data->gtor, TRUE );40 tr_torrent_set_remove_flag( data->gtor, TRUE ); 41 41 g_object_unref( G_OBJECT( data->gtor ) ); 42 42 data->gtor = NULL; … … 52 52 { 53 53 if( response != GTK_RESPONSE_ACCEPT ) 54 deleteOldTorrent( data );54 removeOldTorrent( data ); 55 55 else { 56 56 if( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( data->run_check ) ) ) … … 83 83 struct AddData * data = gdata; 84 84 85 deleteOldTorrent( data );85 removeOldTorrent( data ); 86 86 87 87 g_free( data->filename ); -
trunk/gtk/tr-core.c
r5843 r5868 825 825 tr_torrent_delete_files( gtor ); 826 826 827 /* delete the torrent */828 tr_torrent_set_ delete_flag( gtor, TRUE );827 /* remove the torrent */ 828 tr_torrent_set_remove_flag( gtor, TRUE ); 829 829 g_object_unref( G_OBJECT( gtor ) ); 830 830 } -
trunk/gtk/tr-torrent.c
r5843 r5868 40 40 { 41 41 tr_torrent * handle; 42 gboolean do_ delete;42 gboolean do_remove; 43 43 gboolean seeding_cap_enabled; 44 44 gdouble seeding_cap; /* ratio to stop seeding at */ … … 79 79 if( self->priv->handle ) 80 80 { 81 if( self->priv->do_ delete )82 tr_torrent Delete( self->priv->handle );81 if( self->priv->do_remove ) 82 tr_torrentRemove( self->priv->handle ); 83 83 else 84 84 tr_torrentClose( self->priv->handle ); … … 319 319 320 320 void 321 tr_torrent_set_ delete_flag( TrTorrent * gtor, gboolean do_delete )321 tr_torrent_set_remove_flag( TrTorrent * gtor, gboolean do_remove ) 322 322 { 323 323 if( !isDisposed( gtor ) ) 324 gtor->priv->do_ delete = do_delete;324 gtor->priv->do_remove = do_remove; 325 325 } 326 326 -
trunk/gtk/tr-torrent.h
r5583 r5868 97 97 98 98 void 99 tr_torrent_set_ delete_flag( TrTorrent *, gboolean );99 tr_torrent_set_remove_flag( TrTorrent *, gboolean ); 100 100 101 101 #endif -
trunk/libtransmission/rpc.c
r5860 r5868 131 131 notify( h, TR_RPC_TORRENT_CLOSING, tor ); 132 132 tr_torrentClose( tor ); 133 } 134 tr_free( torrents ); 135 return NULL; 136 } 137 138 static const char* 139 torrentRemove( tr_handle * h, tr_benc * args_in, tr_benc * args_out UNUSED ) 140 { 141 int i, torrentCount; 142 tr_torrent ** torrents = getTorrents( h, args_in, &torrentCount ); 143 for( i=0; i<torrentCount; ++i ) 144 { 145 tr_torrent * tor = torrents[i]; 146 notify( h, TR_RPC_TORRENT_REMOVING, tor ); 147 tr_torrentRemove( tor ); 133 148 } 134 149 tr_free( torrents ); … … 674 689 { "torrent-info", torrentInfo }, 675 690 { "torrent-list", torrentList }, 691 { "torrent-remove", torrentRemove }, 676 692 { "torrent-set-priorities", torrentSetPriorities }, 677 693 { "torrent-set", torrentSet }, -
trunk/libtransmission/torrent.c
r5843 r5868 1134 1134 1135 1135 void 1136 tr_torrent Delete( tr_torrent * tor )1136 tr_torrentRemove( tr_torrent * tor ) 1137 1137 { 1138 1138 tor->isDeleting = 1; -
trunk/libtransmission/transmission.h
r5843 r5868 157 157 TR_RPC_TORRENT_STOPPED, 158 158 TR_RPC_TORRENT_CLOSING, 159 TR_RPC_TORRENT_REMOVING, 159 160 TR_RPC_TORRENT_CHANGED, 160 161 TR_RPC_SESSION_CHANGED … … 469 470 * + Simplifies the API down to two (non-deprecated) functions. 470 471 * + You can set the fields you want; the system sets defaults for the rest. 471 * + You can specify whether or not your fields should supercede fastresume's.472 * + You can specify whether or not your fields should supercede resume's. 472 473 * + We can add new features to tr_ctor without breaking tr_torrentNew()'s API. 473 474 * … … 488 489 { 489 490 TR_FALLBACK, /* indicates the ctor value should be used only 490 in case of missing fastresume settings */491 in case of missing resume settings */ 491 492 492 493 TR_FORCE, /* indicates the ctor value should be used 493 regardless of what's in the fastresume settings */494 regardless of what's in the resume settings */ 494 495 } 495 496 tr_ctorMode; … … 747 748 /** 748 749 * Like tr_torrentClose() but also deletes 749 * the fastresume file and our copy of the750 * the resume file and our copy of the 750 751 * torrent file 751 752 */ 752 void tr_torrent Delete( tr_torrent * );753 void tr_torrentRemove( tr_torrent * ); 753 754 754 755 /*********************************************************************** -
trunk/macosx/Makefile.am
r5789 r5868 57 57 InfoWindowController.h \ 58 58 InfoWindowController.m \ 59 IPCController.h \60 IPCController.m \61 59 main.m \ 62 60 MenuLabel.h \ -
trunk/macosx/Torrent.m
r5858 r5868 206 206 [self setTimeMachineExclude: NO forPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]]; 207 207 208 tr_torrent Delete(fHandle);208 tr_torrentRemove(fHandle); 209 209 } 210 210
Note: See TracChangeset
for help on using the changeset viewer.