2005-06-02 14:16:43 -04:00
|
|
|
//
|
|
|
|
// PlaylistEntry.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 3/14/05.
|
2005-07-02 17:02:06 -04:00
|
|
|
// Copyright 2005 Vincent Spader All rights reserved.
|
2005-06-02 14:16:43 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@interface PlaylistEntry : NSObject {
|
2008-02-23 16:46:23 -03:00
|
|
|
int index;
|
|
|
|
int shuffleIndex;
|
2008-03-01 00:29:21 -03:00
|
|
|
|
|
|
|
BOOL current;
|
|
|
|
BOOL removed;
|
|
|
|
|
|
|
|
BOOL stopAfter;
|
|
|
|
|
|
|
|
BOOL queued;
|
2008-02-22 12:26:46 -03:00
|
|
|
int queuePosition;
|
2008-02-19 21:44:40 -03:00
|
|
|
|
2008-03-01 00:29:21 -03:00
|
|
|
BOOL error;
|
|
|
|
NSString *errorMessage;
|
|
|
|
|
2008-02-19 21:44:40 -03:00
|
|
|
NSURL *URL;
|
2008-02-18 13:06:54 -03:00
|
|
|
|
2005-06-02 14:16:43 -04:00
|
|
|
NSString *artist;
|
|
|
|
NSString *album;
|
|
|
|
NSString *title;
|
|
|
|
NSString *genre;
|
2008-03-03 21:43:47 -03:00
|
|
|
NSNumber *year;
|
2008-02-29 17:30:37 -03:00
|
|
|
NSNumber *track;
|
2009-03-08 17:04:09 -03:00
|
|
|
NSImage *albumArt;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
2008-02-23 16:46:23 -03:00
|
|
|
long long totalFrames;
|
|
|
|
int bitrate;
|
|
|
|
int channels;
|
|
|
|
int bitsPerSample;
|
|
|
|
float sampleRate;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
2008-03-01 00:29:21 -03:00
|
|
|
NSString *endian;
|
|
|
|
|
2008-02-23 16:46:23 -03:00
|
|
|
BOOL seekable;
|
2009-03-06 01:46:42 -03:00
|
|
|
|
|
|
|
BOOL metadataLoaded;
|
2005-06-02 14:16:43 -04:00
|
|
|
}
|
|
|
|
|
2008-02-29 18:54:09 -03:00
|
|
|
+ (NSSet *)keyPathsForValuesAffectingDisplay;
|
|
|
|
+ (NSSet *)keyPathsForValuesAffectingLength;
|
|
|
|
+ (NSSet *)keyPathsForValuesAffectingPath;
|
|
|
|
+ (NSSet *)keyPathsForValuesAffectingFilename;
|
2008-03-01 00:29:21 -03:00
|
|
|
+ (NSSet *)keyPathsForValuesAffectingStatus;
|
|
|
|
+ (NSSet *)keyPathsForValuesAffectingStatusMessage;
|
2008-02-29 18:54:09 -03:00
|
|
|
|
2008-02-19 21:44:40 -03:00
|
|
|
@property(readonly) NSString *display;
|
2008-02-29 17:09:59 -03:00
|
|
|
@property(retain, readonly) NSNumber *length;
|
2008-02-19 21:44:40 -03:00
|
|
|
@property(readonly) NSString *path;
|
|
|
|
@property(readonly) NSString *filename;
|
2006-05-12 10:53:13 -04:00
|
|
|
|
2008-02-23 16:46:23 -03:00
|
|
|
@property int index;
|
|
|
|
@property int shuffleIndex;
|
2008-03-01 00:29:21 -03:00
|
|
|
|
|
|
|
@property(readonly) NSString *status;
|
|
|
|
@property(readonly) NSString *statusMessage;
|
|
|
|
|
|
|
|
@property BOOL current;
|
|
|
|
@property BOOL removed;
|
|
|
|
|
|
|
|
@property BOOL stopAfter;
|
|
|
|
|
|
|
|
@property BOOL queued;
|
2008-02-22 12:26:46 -03:00
|
|
|
@property int queuePosition;
|
2008-03-01 00:29:21 -03:00
|
|
|
|
|
|
|
@property BOOL error;
|
|
|
|
@property(retain) NSString *errorMessage;
|
|
|
|
|
2008-02-19 21:44:40 -03:00
|
|
|
@property(retain) NSURL *URL;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
2008-02-19 21:44:40 -03:00
|
|
|
@property(retain) NSString *artist;
|
|
|
|
@property(retain) NSString *album;
|
|
|
|
@property(retain) NSString *title;
|
|
|
|
@property(retain) NSString *genre;
|
2008-03-03 21:43:47 -03:00
|
|
|
@property(retain) NSNumber *year;
|
2008-02-29 17:30:37 -03:00
|
|
|
@property(retain) NSNumber *track;
|
2009-03-08 17:04:09 -03:00
|
|
|
@property(retain) NSImage *albumArt;
|
2007-10-31 22:53:52 -03:00
|
|
|
|
2008-02-23 16:46:23 -03:00
|
|
|
@property long long totalFrames;
|
|
|
|
@property int bitrate;
|
|
|
|
@property int channels;
|
|
|
|
@property int bitsPerSample;
|
|
|
|
@property float sampleRate;
|
2007-05-27 11:11:30 -04:00
|
|
|
|
2008-03-01 00:29:21 -03:00
|
|
|
@property(retain) NSString *endian;
|
|
|
|
|
2008-02-23 16:46:23 -03:00
|
|
|
@property BOOL seekable;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
2009-03-06 01:46:42 -03:00
|
|
|
@property BOOL metadataLoaded;
|
|
|
|
|
|
|
|
- (void)setMetadata:(NSDictionary *)metadata;
|
|
|
|
|
2005-06-02 14:16:43 -04:00
|
|
|
@end
|