1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

set another ipc method

This commit is contained in:
Mitchell Livingston 2007-07-18 02:57:44 +00:00
parent f0a4860166
commit 491da292f8

View file

@ -3224,15 +3224,16 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
return [fTorrents count] > oldCount; return [fTorrents count] > oldCount;
} }
- (BOOL) ipcAddTorrentFile: (NSString *) path - (BOOL) ipcAddTorrentFile: (NSString *) path directory: (NSString *) directory
directory: (NSString *) dir
{ {
return NO; int oldCount = [fTorrents count];
[self openFiles: [NSArray arrayWithObject: path] forcePath: directory ignoreDownloadFolder: NO forceDeleteTorrent: NO];
return [fTorrents count] > oldCount;
} }
- (BOOL) ipcAddTorrentFileAutostart: (NSString *) path - (BOOL) ipcAddTorrentFileAutostart: (NSString *) path directory: (NSString *) directory autostart: (BOOL) autostart
directory: (NSString *) dir
autostart: (BOOL) autostart
{ {
/* 'path' is path to torrent file, 'dir' is the directory it /* 'path' is path to torrent file, 'dir' is the directory it
should download it's files to and may be nil, 'autostart' is a should download it's files to and may be nil, 'autostart' is a
@ -3242,20 +3243,17 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
return NO; return NO;
} }
- (BOOL) ipcAddTorrentData: (NSData *) data - (BOOL) ipcAddTorrentData: (NSData *) data directory: (NSString *) directory
directory: (NSString *) dir
{ {
/* 'data' is the contents of a torrent file, 'dir' is the /* 'data' is the contents of a torrent file, 'directory' is the
directory it should download it's files to and may be nil, directory it should download it's files to and may be nil,
should return NO if torrent fails to load */ should return NO if torrent fails to load */
return NO; return NO;
} }
- (BOOL) ipcAddTorrentDataAutostart: (NSData *) path - (BOOL) ipcAddTorrentDataAutostart: (NSData *) path directory: (NSString *) directory autostart: (BOOL) autostart
directory: (NSString *) dir
autostart: (BOOL) autostart
{ {
/* 'data' is the contents of a torrent file, 'dir' is the /* 'data' is the contents of a torrent file, 'directory' is the
directory it should download it's files to and may be nil, directory it should download it's files to and may be nil,
'autostart' is a boolean indicating if the torrent should be 'autostart' is a boolean indicating if the torrent should be
automatically started (or queued to start, I guess), should automatically started (or queued to start, I guess), should