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 {
2007-03-02 01:36:52 +00:00
NSURL * url ;
2005-06-02 18:16:43 +00:00
NSString * artist ;
NSString * album ;
NSString * title ;
NSString * genre ;
2006-05-12 21:49:51 +00:00
NSString * year ;
2005-06-02 18:16:43 +00:00
unsigned int track ;
NSString * lengthString ;
double length ;
2006-06-19 00:39:41 +00:00
int bitrate ;
2005-06-02 18:16:43 +00:00
int channels ;
int bitsPerSample ;
float sampleRate ;
BOOL current ;
2006-04-13 02:51:22 +00:00
int idx ; //Can't use index due to some weird bug...might be fixed...should test in the future...think it was a conflict with flac, which is now an external lib
int shuffleIdx ;
2006-04-15 14:17:46 +00:00
int displayIdx ;
2005-06-02 18:16:43 +00:00
}
2007-03-09 01:16:06 +00:00
- ( void ) setIndex : ( int ) i ;
- ( int ) index ;
2006-04-15 13:51:40 +00:00
2007-03-09 01:16:06 +00:00
- ( void ) setShuffleIndex : ( int ) si ;
- ( int ) shuffleIndex ;
2006-04-15 13:51:40 +00:00
2007-03-09 01:16:06 +00:00
- ( void ) setURL : ( NSURL * ) u ;
- ( NSURL * ) url ;
- ( void ) setCurrent : ( BOOL ) b ;
- ( BOOL ) current ;
2005-06-02 18:16:43 +00:00
- ( void ) setArtist : ( NSString * ) s ;
- ( NSString * ) artist ;
- ( void ) setAlbum : ( NSString * ) s ;
- ( NSString * ) album ;
- ( void ) setTitle : ( NSString * ) s ;
- ( NSString * ) title ;
- ( void ) setGenre : ( NSString * ) s ;
- ( NSString * ) genre ;
- ( NSString * ) lengthString ;
- ( void ) setLengthString : ( double ) l ;
2007-03-09 01:16:06 +00:00
- ( void ) setYear : ( NSString * ) y ;
- ( NSString * ) year ;
- ( void ) setTrack : ( int ) y ;
- ( int ) track ;
2006-05-12 14:53:13 +00:00
2007-02-24 20:36:27 +00:00
- ( void ) setLength : ( double ) l ;
- ( void ) setBitrate : ( int ) br ;
- ( void ) setChannels : ( int ) c ;
- ( void ) setBitsPerSample : ( int ) bps ;
- ( void ) setSampleRate : ( float ) s ;
2005-06-02 18:16:43 +00:00
- ( double ) length ;
2006-06-19 00:39:41 +00:00
- ( int ) bitrate ;
2005-06-02 18:16:43 +00:00
- ( int ) channels ;
- ( int ) bitsPerSample ;
- ( float ) sampleRate ;
2007-03-09 01:16:06 +00:00
- ( void ) setMetadata : ( NSDictionary * ) m ;
- ( void ) readMetadataThread ;
- ( void ) setProperties : ( NSDictionary * ) p ;
- ( void ) readPropertiesThread ;
2005-06-02 18:16:43 +00:00
@ end