Changeset 2386


Ignore:
Timestamp:
Jul 18, 2007, 2:57:44 AM (15 years ago)
Author:
livings124
Message:

set another ipc method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r2385 r2386  
    32253225}
    32263226
    3227 - (BOOL) ipcAddTorrentFile: (NSString *) path
    3228                  directory: (NSString *) dir
    3229 {
    3230     return NO;
    3231 }
    3232 
    3233 - (BOOL) ipcAddTorrentFileAutostart: (NSString *) path
    3234                           directory: (NSString *) dir
    3235                           autostart: (BOOL) autostart
     3227- (BOOL) ipcAddTorrentFile: (NSString *) path directory: (NSString *) directory
     3228{
     3229    int oldCount = [fTorrents count];
     3230   
     3231    [self openFiles: [NSArray arrayWithObject: path] forcePath: directory ignoreDownloadFolder: NO forceDeleteTorrent: NO];
     3232   
     3233    return [fTorrents count] > oldCount;
     3234}
     3235
     3236- (BOOL) ipcAddTorrentFileAutostart: (NSString *) path directory: (NSString *) directory autostart: (BOOL) autostart
    32363237{
    32373238    /* 'path' is path to torrent file, 'dir' is the directory it
     
    32433244}
    32443245
    3245 - (BOOL) ipcAddTorrentData: (NSData *) data
    3246                  directory: (NSString *) dir
    3247 {
    3248     /* 'data' is the contents of a torrent file, 'dir' is the
     3246- (BOOL) ipcAddTorrentData: (NSData *) data directory: (NSString *) directory
     3247{
     3248    /* 'data' is the contents of a torrent file, 'directory' is the
    32493249       directory it should download it's files to and may be nil,
    32503250       should return NO if torrent fails to load */
     
    32523252}
    32533253
    3254 - (BOOL) ipcAddTorrentDataAutostart: (NSData *) path
    3255                           directory: (NSString *) dir
    3256                           autostart: (BOOL) autostart
    3257 {
    3258     /* 'data' is the contents of a torrent file, 'dir' is the
     3254- (BOOL) ipcAddTorrentDataAutostart: (NSData *) path directory: (NSString *) directory autostart: (BOOL) autostart
     3255{
     3256    /* 'data' is the contents of a torrent file, 'directory' is the
    32593257       directory it should download it's files to and may be nil,
    32603258       'autostart' is a boolean indicating if the torrent should be
Note: See TracChangeset for help on using the changeset viewer.