cog/PlaybackController.h

61 lines
1.4 KiB
C
Raw Normal View History

2006-01-20 15:41:31 +00:00
/* SoundController */
#import <Cocoa/Cocoa.h>
#import "SoundController.h"
#import "PlaylistController.h"
#import "TrackingSlider.h"
@class PlaylistView;
@interface PlaybackController : NSObject
{
IBOutlet PlaylistController *playlistController;
IBOutlet PlaylistView *playlistView;
IBOutlet TrackingSlider *positionSlider;
IBOutlet NSTextField *timeField;
IBOutlet NSTextField *lengthField;
IBOutlet NSTextField *bitrateField;
IBOutlet NSButton *playButton;
BOOL waitingForPlay; //No sneaky changing on us
SoundController *soundController;
int playbackStatus;
BOOL showTimeRemaining;
}
- (IBAction)toggleShowTimeRemaining:(id)sender;
- (IBAction)changeVolume:(id)sender;
- (IBAction)playPauseResume:(id)sender;
- (IBAction)pauseResume:(id)sender;
- (IBAction)play:(id)sender;
- (IBAction)pause:(id)sender;
- (IBAction)resume:(id)sender;
- (IBAction)stop:(id)sender;
- (IBAction)next:(id)sender;
- (IBAction)prev:(id)sender;
- (IBAction)seek:(id)sender;
- (void)updateTimeField:(double)pos;
- (void)playEntryAtIndex:(int)i;
- (void)playEntry:(PlaylistEntry *)pe;
//Methods since this is SoundController's delegate
2006-01-29 14:57:48 +00:00
- (void)delegateNotifyStatusUpdate:(NSNumber *)status;
2006-01-20 15:41:31 +00:00
- (void)delegateNotifyPositionUpdate:(double)pos;
- (void)delegateNotifyBitrateUpdate:(float)bitrate;
- (void)delegateNotifySongChanged:(double)length;
- (void)delegateRequestNextSong:(int)queueSize;
@end