-
Notifications
You must be signed in to change notification settings - Fork 0
/
MediaNox.h
136 lines (85 loc) · 3.56 KB
/
MediaNox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
//
// MediaNox.h
// MediaNox
//
// Created by Björn Teichmann on 19.03.09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#include <FMDatabase.h>
@interface MediaNox : NSObject {
IBOutlet NSObjectController *myLinker;
IBOutlet NSWindow *window;
IBOutlet NSTextView *statusText;
IBOutlet NSScrollView *statusTextScrollview;
IBOutlet NSArrayController *queueController;
IBOutlet NSArrayController *ffmpegBinaries;
IBOutlet NSProgressIndicator *monitorWheel;
IBOutlet NSTableView *queueTable;
IBOutlet NSLevelIndicator *ffmpegState;
IBOutlet NSButton *stopButton;
IBOutlet NSView *queueView;
IBOutlet NSTextField *ffmpegBitrate;
IBOutlet NSTextField *timeLeft;
NSTask *ffmpegConvertTask;
NSMutableDictionary *currentMediaFile;
BOOL stoppedState;
NSTimer *monitorFolderTimer;
NSTimeInterval fiveSecondsAgoCheckDate;
double fiveSecondsAgoCheckCTime;
IBOutlet NSWindow *preferencesWindow;
IBOutlet NSTabView *settingsTabs;
IBOutlet NSPopUpButton *moveSourcePopupButton;
IBOutlet NSPopUpButton *tempMonitoredFolderPopupButton;
IBOutlet NSPopUpButton *importDestinationPopupButton;
}
- (void) saveQueue;
- (void) loadQueue;
- (void) stopAllConversionsTasks;
- (void) queueTheseFiles: (NSArray *) _filesToQueue inDirectory: (NSString *) _dir depth: (int) _depth;
- (void) queueTheseFiles: (NSArray *) _filesToQueue depth: (int) _depth;
- (void) queueTheseFiles: (NSArray *) _filesToQueue;
- (void) queueThisFile: (NSString *) mediaURL;
- (void) queueThisFile: (NSString *) mediaURL withOrgURLEntry: (NSString *) _orgURL;
- (void) fetchNextFileFromQueue;
- (BOOL) convertMediaFile: (NSMutableDictionary *) mediaDict;
- (oneway void) importConvertedMediaToiTunes: (NSMutableDictionary *) _mediaDict;
- (void) askToRemoveRunningTask: (NSMutableDictionary *) mediaDict;
- (BOOL) isFFmpegAlreadyRunning;
- (IBAction) selectFilesButtonPressed: (id) sender;
- (IBAction) monitorButtonPressed: (id) sender;
- (IBAction) openSettingsWindow: (id) sender;
- (IBAction) resetUserPresets: (id) sender;
- (IBAction) resetUserTVSDRegex: (id) sender;
- (void) monitorActiveQuestion;
- (void) selectMonitorFolder;
- (void) startMonitoringForFolder: (NSString *) _monitorFolder;
- (void) disableMonitoring;
- (void) reQueue: (id) sender;
- (void) removeFromQueue: (id) sender;
- (void) clearQueuePressed: (id) sender;
- (void) stopButtonPressed: (id) sender;
- (void) askForQuit;
- (void) askForStop;
- (void) updateBadge;
- (NSArray *) getArgumentsForPresetNamed: (NSString *) _presetName;
- (NSArray *) parseFfmpegArguments: (id) _argumentsArrayOrString;
- (NSArray *) parseFfmpegArgumentsFromString: (NSString *) _argumentsString;
- (void) doLog: (NSString *) _log;
- (void) doLog: (NSString *) aLogMessage withNewline: (BOOL) withNewLine;
- (void) settings_selectGeneral: (id) sender;
- (void) settings_selectFFMPEGSettings: (id) sender;
- (void) settings_selectMonitorSettings: (id) sender;
- (void) settings_selectTVShowDetection: (id) sender;
- (void) settings_selectUpdate: (id) sender;
- (void) changeMoveMonitoredSuccessFolder: (id) sender;
- (void) changeMoveMonitoredSuccessFolderToDefault: (id) sender;
- (void) changeImportDestination: (id) sender;
- (void) changeImportDestinationToiTunes: (id) sender;
- (void) changeTempMonitoredFolder: (id) sender;
- (void) changeTempMonitoredFolderToDefault: (id) sender;
- (IBAction) showAboutDialog: (id) sender;
-(void) prepareffmpegBinariesForSettingsView;
- (NSString *) checkFFmpegVersionforBinary: (NSString *) _ffmpegBin;
- (IBAction) visitTVDetectionWiki: (id) sender;
@end