cog/Playlist/PlaylistEntry.h

103 lines
1.9 KiB
C
Raw Normal View History

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