cog/Playlist/PlaylistEntry.h

79 lines
1.4 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>
#import "SoundFile.h"
@interface PlaylistEntry : NSObject {
NSString *filename;
NSString *display;
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
}
-(void)setIndex:(int)i;
-(int)index;
2006-04-15 13:51:40 +00:00
-(void)setShuffleIndex:(int)si;
-(int)shuffleIndex;
2005-06-02 18:16:43 +00:00
-(void)setFilename:(NSString *)f;
-(NSString *)filename;
-(void)setDisplay:(NSString *)d;
-(NSString *)display;
-(void)setCurrent:(BOOL) b;
-(BOOL)current;
- (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;
2006-05-12 21:49:51 +00:00
-(void)setYear:(NSString *)y;
-(NSString *)year;
2006-05-12 14:53:13 +00:00
-(void)setTrack:(int)y;
-(int)track;
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;
- (void)readTags;
- (void)readInfo;
@end