//
//  RecordingInfo.h
//  CyTV
//
//  Created by Andreas Junghans on 17.12.07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


typedef enum _SortRecordingsBy {
    SortById = 1,
    SortByTitle
} SortRecordingsBy;

@interface RecordingInfo : NSObject {
    UInt64 _id;
    NSString *_title;
    NSString *_episode;
    NSURL *_location;
    NSImage *_previewPicture;
    NSString *_imageCacheKey;
}

- (UInt64)getId;
- (NSString *)getTitle;
- (NSString *)getEpisode;
- (NSString *)getVideoFilePath;
- (NSImage *)getPreviewPicture;
+ (void)collectRecordingInfo;
+ (RecordingInfo *)getRecordingInfoById:(UInt64)recordingId;
+ (RecordingInfo *)getRecordingInfoBySearch:(NSString *)term;
+ (NSData *)getPreviewPNGForId:(UInt64)recordingId;
+ (NSString *)getJSONForRecordingsFrom:(unsigned long)fromIndex to:(unsigned long)toIndex sortedBy:(SortRecordingsBy)sortedBy ascending:(BOOL)ascending;

@end
