2010-09-20 19:44:17 -05:00
|
|
|
//
|
|
|
|
// MGMTaskManager.h
|
|
|
|
// YouView
|
|
|
|
//
|
|
|
|
// Created by Mr. Gecko on 4/16/09.
|
2011-02-24 11:24:19 -06:00
|
|
|
// Copyright (c) 2011 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
|
2010-09-20 19:44:17 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
extern NSString * const MGMTAURL;
|
|
|
|
extern NSString * const MGMTAFilePath;
|
|
|
|
extern NSString * const MGMTAVMTaskPath;
|
|
|
|
extern NSString * const MGMTAFileName;
|
|
|
|
extern NSString * const MGMTADonePath;
|
|
|
|
extern NSString * const MGMTARevealPath;
|
|
|
|
extern NSString * const MGMTATime;
|
|
|
|
|
|
|
|
extern NSString * const MGMTAInfoPlist;
|
|
|
|
|
|
|
|
extern NSString * const MGMVMTaskExt;
|
|
|
|
extern NSString * const MGMMP3Ext;
|
|
|
|
extern NSString * const MGMZIPExt;
|
|
|
|
extern NSString * const MGMVMTExt;
|
|
|
|
extern NSString * const MGMVMSExt;
|
|
|
|
|
|
|
|
@protocol MGMTaskManagerDelegate <NSObject>
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MGMTaskManager : NSObject {
|
|
|
|
id delegate;
|
|
|
|
|
|
|
|
IBOutlet NSWindow *tasksWindow;
|
|
|
|
IBOutlet NSTableView *taskTable;
|
|
|
|
IBOutlet NSTextField *numTasks;
|
|
|
|
NSMutableArray *tasks;
|
|
|
|
}
|
|
|
|
+ (id)managerWithDelegate:(id)theDelegate;
|
|
|
|
- (id)initWithDelegate:(id)theDelegate;
|
|
|
|
|
|
|
|
- (id<MGMTaskManagerDelegate>)delegate;
|
|
|
|
|
|
|
|
- (void)reloadData;
|
|
|
|
- (void)updateCount;
|
|
|
|
- (IBAction)showTaskManager:(id)sender;
|
|
|
|
- (IBAction)clear:(id)sender;
|
2011-02-24 11:24:19 -06:00
|
|
|
- (void)addTask:(NSDictionary *)theTask withURL:(NSURL *)theURL cookieStorage:(id)theCookieStorage;
|
|
|
|
- (void)saveURL:(NSURL *)theURL withName:(NSString *)theName cookieStorage:(id)theCookieStorage;
|
2010-09-20 19:44:17 -05:00
|
|
|
|
|
|
|
- (void)application:(NSApplication *)sender openFiles:(NSArray *)files;
|
|
|
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
|
2011-02-22 12:00:36 -06:00
|
|
|
@end
|