refactor some of the torrent opening code

This commit is contained in:
Mitchell Livingston
2008-01-05 02:48:10 +00:00
parent f2a6d79928
commit 093b59f754
3 changed files with 49 additions and 35 deletions

View File

@@ -38,6 +38,14 @@
@class TorrentTableView;
typedef enum
{
ADD_NORMAL,
ADD_SHOW_OPTIONS,
ADD_URL,
ADD_CREATED
} addType;
@interface Controller : NSObject <GrowlApplicationBridgeDelegate>
{
tr_handle * fLib;
@@ -109,8 +117,7 @@
}
- (void) openFiles: (NSArray *) filenames;
- (void) openFiles: (NSArray *) filenames forcePath: (NSString *) path ignoreDownloadFolder: (BOOL) ignore
deleteTorrentFile: (torrentFileState) deleteTorrent;
- (void) openFiles: (NSArray *) filenames addType: (addType) type forcePath: (NSString *) path;
- (void) askOpenConfirmed: (Torrent *) torrent;
- (void) openCreatedFile: (NSNotification *) notification;
- (void) openFilesWithDict: (NSDictionary *) dictionary;