-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDBVidi.h
executable file
·141 lines (115 loc) · 4.08 KB
/
DBVidi.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
137
138
139
140
141
//
// DBVidi.h
// Vidi
//
// Created by Mitz Pettel on Jan 1 2003.
// Copyright (c) 2003, 2005 Mitz Pettel. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "DBDVGrabber.h"
#import "DBVidiServer.h"
#import <SystemConfiguration/SystemConfiguration.h>
@class DBMediumWindowController;
@class DBTimerWindowController;
@class DBTVChannel;
enum DBVidiMedium {
DBVideoMedium = 0,
DBRadioMedium = 1
};
typedef enum DBVidiMedium DBVidiMedium;
extern NSString *DBChannelListChangedNotification;
extern NSString *DBChannelSelectionDidChangeNotification;
extern NSString *DBVolumeChangedNotification;
extern NSString *DBPictureSettingsChangedNotification;
extern NSString *DBVidiStartedRecordingNotification;
extern NSString *DBVidiStoppedRecordingNotification;
extern NSString *DBVidiJobsUpdatedNotification;
extern NSString *DBVidiSelectedJobChangedNotification;
extern NSString *DBFloatWindowSettingName;
extern NSString *DBSplitMoviesSettingName;
extern NSString *DBMediumSettingName;
extern NSString *DBRadioEditingSettingMode;
extern NSString *DBAudioFormatSettingName;
extern NSString *DBLastDVFormatKey;
extern unsigned int const DBChunkSize;
@interface DBVidi : NSObject <DBVidiClient> {
IBOutlet NSPopUpButton *moviesDirectoryPopUp;
IBOutlet NSButton *statusItemCheckbox;
IBOutlet NSButton *floatCheckbox;
IBOutlet NSButton *changeGammaCheckbox;
IBOutlet NSButton *splitCheckbox;
IBOutlet NSTextField *audioFormatTextField;
IBOutlet NSPanel *extendRecordingSheet;
IBOutlet NSTextField *extendRecordingTextField;
NSMutableArray *_videoChannels;
NSMutableArray *_radioChannels;
DBTVChannel *_previousChannel;
DBTVChannel *_currentChannel;
DBTVChannel *_pushedChannel;
float _volume;
BOOL _isMuted;
BOOL _isConsoleUser;
NSMutableDictionary *_callKeyChannels;
BOOL _isRecording;
NSMenu *_dockMenu;
NSDistantObject <DBDVGrabber> *_grabber;
NSDistantObject <DBVidiServer> *_server;
// Whether the server was there or we launched it
BOOL _launchedServer;
DBMediumWindowController *_mediumWindowController;
DBTimerWindowController *_timerWindowController;
DBVidiMedium _medium;
SCDynamicStoreRef _dynamicStore;
}
- (void)acquireServer;
- (IBAction)orderFrontTimerWindow:(id)sender;
- (IBAction)orderFrontVidiAboutPanel:(id)sender;
- (IBAction)takeMediumFrom:(id)sender;
- (IBAction)changedMoviesDirectory:(id)sender;
- (IBAction)takeShowStatusItemFrom:(id)sender;
- (IBAction)takeFloatFrom:(id)sender;
- (IBAction)takeChangeGammaFrom:(id)sender;
- (IBAction)takeSplitFrom:(id)sender;
- (IBAction)changeAudioFormatClicked:(id)sender;
- (void)updateDefaults;
- (IBAction)openVidiWebsite:(id)sender;
- (IBAction)openFeedbackWebsite:(id)sender;
- (IBAction)extendRecordingButtonClicked:(id)sender;
- (void)selectNextChannel;
- (void)selectPreviousChannel;
- (void)flipChannels;
- (void)selectChannelAtIndex:(int)i;
- (int)indexOfChannel:(DBTVChannel *)channel;
- (DBTVChannel *)channelForFrequency:(DBTVFrequency)frequency;
- (int)indexOfSelectedChannel;
- (void)selectChannel:(DBTVChannel *)channel;
- (int)callKeyOfChannel:(DBTVChannel *)chan;
- (BOOL)isRecording;
- (void)startRecordingToFile:(NSString *)path;
- (void)stopRecording;
- (void)setCallKey:(int)key forChannel:(DBTVChannel *)chan;
- (DBTVChannel *)channelWithCallKey:(int)key;
- (void)setVolume:(float)value;
- (NSMutableArray *)channels;
- (float)volume;
- (id <DBDVGrabber>)grabber;
- (NSString *)tunerDisplayName;
- (unsigned)firmwareVersion;
- (id <DBVidiServer>)server;
- (DBTVChannel *)selectedChannel;
- (BOOL)isMuted;
- (void)setMuted:(BOOL)mute;
- (void)setBrightness:(int)b contrast:(int)c saturation:(int)s hue:(int)h;
- (void)addChannel:(DBTVChannel *)chan;
- (void)removeChannelAtIndex:(int)i;
- (void)moveChannelAtIndex:(int)i toIndex:(int)j;
- (NSMutableArray *)formacChannels;
- (void)updateMoviesDirectoryPopUp;
- (void)setMoviesDirectory:(NSString *)path;
- (NSString *)moviesDirectory;
- (void)updateAudioFormatTextField;
- (void)updateDockMenu;
- (NSArray *)_privateChannels;
- (DBVidiMedium)medium;
- (void)setMedium:(DBVidiMedium)med;
@end