Whoops, forgot to add a couple cue sheet related files.

CQTexperiment
vspader 2007-10-10 03:13:38 +00:00
parent 50395e6e72
commit 4bcf22ced2
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,18 @@
//
// CueSheetPropertiesReader.h
// CueSheet
//
// Created by Vincent Spader on 10/08/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Plugin.h"
@interface CueSheetPropertiesReader : NSObject <CogPropertiesReader>
{
}
@end

View File

@ -0,0 +1,38 @@
//
// CueSheetPropertiesReader.m
// CueSheet
//
// Created by Vincent Spader on 10/08/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "CueSheetPropertiesReader.h"
#import "CueSheetDecoder.h"
@implementation CueSheetPropertiesReader
+ (NSDictionary *)propertiesForSource:(id<CogSource>)source
{
NSDictionary *properties;
CueSheetDecoder *decoder;
decoder = [[CueSheetDecoder alloc] init];
if (![decoder open:source])
{
return nil;
}
properties = [decoder properties];
[decoder close];
return properties;
}
+ (NSArray *)fileTypes
{
return [CueSheetDecoder fileTypes];
}
@end