cog/Playlist/PlaylistEntry.h

181 lines
3.8 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 <NSCopying> {
NSInteger index;
NSInteger shuffleIndex;
NSInteger dbIndex;
NSInteger entryId;
NSInteger artId;
BOOL current;
BOOL removed;
BOOL stopAfter;
BOOL queued;
NSInteger queuePosition;
BOOL error;
NSString *errorMessage;
2008-02-20 00:44:40 +00:00
NSURL *URL;
NSURL *trashURL;
2005-06-02 18:16:43 +00:00
NSString *artist;
NSString *albumartist;
2005-06-02 18:16:43 +00:00
NSString *album;
NSString *title;
NSString *genre;
NSNumber *year;
NSNumber *track;
NSNumber *disc;
NSString *cuesheet;
NSData *albumArtInternal;
float replayGainAlbumGain;
float replayGainAlbumPeak;
float replayGainTrackGain;
float replayGainTrackPeak;
float volume;
double currentPosition;
2008-02-23 19:46:23 +00:00
long long totalFrames;
int bitrate;
int channels;
uint32_t channelConfig;
2008-02-23 19:46:23 +00:00
int bitsPerSample;
BOOL floatingPoint;
BOOL Unsigned;
2008-02-23 19:46:23 +00:00
float sampleRate;
NSString *codec;
NSString *endian;
NSString *encoding;
2008-02-23 19:46:23 +00:00
BOOL seekable;
BOOL metadataLoaded;
BOOL deleted;
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;
+ (NSSet *)keyPathsForValuesAffectingSpam;
+ (NSSet *)keyPathsForValuesAffectingAlbumArt;
+ (NSSet *)keyPathsForValuesAffectingTrackText;
+ (NSSet *)keyPathsForValuesAffectingLengthText;
+ (NSSet *)keyPathsForValuesAffectingYearText;
+ (NSSet *)keyPathsForValuesAffectingCuesheetPresent;
+ (NSSet *)keyPathsForValuesAffectingGainCorrection;
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
@property(readonly) NSString *spam;
@property(readonly) NSString *positionText;
@property(readonly) NSString *lengthText;
@property(readonly) NSString *yearText;
@property(readonly) NSString *rawTitle;
@property(readonly) NSString *trackText;
@property NSInteger index;
@property NSInteger shuffleIndex;
@property NSInteger dbIndex;
@property NSInteger entryId;
@property NSInteger artId;
@property(readonly) NSString *status;
@property(readonly) NSString *statusMessage;
@property BOOL current;
@property BOOL removed;
@property BOOL stopAfter;
@property BOOL queued;
@property NSInteger queuePosition;
@property BOOL error;
@property(retain) NSString *errorMessage;
2008-02-20 00:44:40 +00:00
@property(retain) NSURL *URL;
@property(retain) NSURL *trashURL;
2005-06-02 18:16:43 +00:00
2008-02-20 00:44:40 +00:00
@property(retain) NSString *artist;
@property(retain) NSString *albumartist;
2008-02-20 00:44:40 +00:00
@property(retain) NSString *album;
2013-09-30 00:27:55 +00:00
@property(nonatomic, retain) NSString *title;
2008-02-20 00:44:40 +00:00
@property(retain) NSString *genre;
@property(retain) NSNumber *year;
@property(retain) NSNumber *track;
@property(retain) NSNumber *disc;
@property(retain) NSString *cuesheet;
@property(readonly) NSString *cuesheetPresent;
@property(retain, readonly) NSImage *albumArt;
@property(retain) NSData *albumArtInternal;
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 uint32_t channelConfig;
2008-02-23 19:46:23 +00:00
@property int bitsPerSample;
@property BOOL floatingPoint;
@property BOOL Unsigned;
2008-02-23 19:46:23 +00:00
@property float sampleRate;
@property(retain) NSString *codec;
@property float replayGainAlbumGain;
@property float replayGainAlbumPeak;
@property float replayGainTrackGain;
@property float replayGainTrackPeak;
@property float volume;
@property(readonly) NSString *gainCorrection;
@property(readonly) NSString *gainInfo;
@property double currentPosition;
@property(retain) NSString *endian;
@property(retain) NSString *encoding;
2008-02-23 19:46:23 +00:00
@property BOOL seekable;
2005-06-02 18:16:43 +00:00
@property BOOL metadataLoaded;
@property BOOL deleted;
- (void)setMetadata:(NSDictionary *)metadata;
2005-06-02 18:16:43 +00:00
@end