Whoops, forgot to add a couple cue sheet related files.
parent
50395e6e72
commit
4bcf22ced2
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue