Cog/Playlist/PlaylistEntry.h

78 lines
1.5 KiB
C
Raw Normal View History

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>
typedef enum {
kCogEntryNormal = 0,
kCogEntryPlaying,
kCogEntryError,
kCogEntryQueued,
kCogEntryRemoved,
kCogEntryStoppingAfterCurrent,
} PlaylistEntryStatus;
2005-06-02 14:16:43 -04:00
@interface PlaylistEntry : NSObject {
2008-02-23 16:46:23 -03:00
int index;
int shuffleIndex;
PlaylistEntryStatus status;
NSString *statusMessage;
int queuePosition;
2008-02-19 21:44:40 -03:00
NSURL *URL;
2005-06-02 14:16:43 -04:00
NSString *artist;
NSString *album;
NSString *title;
NSString *genre;
2006-05-12 17:49:51 -04:00
NSString *year;
2008-02-23 16:46:23 -03:00
int track;
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-02-23 16:46:23 -03:00
BOOL seekable;
2005-06-02 14:16:43 -04:00
}
2008-02-19 21:44:40 -03:00
- (void)setMetadata: (NSDictionary *)m;
- (void)readMetadataThread;
- (void)setProperties: (NSDictionary *)p;
- (void)readPropertiesThread;
2008-02-19 21:44:40 -03:00
@property(readonly) NSString *display;
@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;
@property PlaylistEntryStatus status;
@property(retain) NSString *statusMessage;
@property int queuePosition;
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;
@property(retain) NSString *year;
2008-02-23 16:46:23 -03:00
@property int track;
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;
2008-02-23 16:46:23 -03:00
@property BOOL seekable;
2005-06-02 14:16:43 -04:00
@end