//
//  StreamsDataSource.h
//  CyTV Client
//
//  Created by Andreas Junghans on Sat Oct 25 2003.
//  Copyright (c) 2003-2004 Andreas Junghans. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface StreamsDataSource : NSObject
{
    NSArray* _streams;
    NSMutableDictionary* _streamsDict;
    int _currentStreamIndex;
    double _currentStreamPosition;
    int _currentChannel;
}

- (void)updateWithInfo:(NSString*)info channels:(NSPopUpButton*)channels;
- (int)currentStreamIndex;
- (double)currentStreamPosition;
- (NSString*)streamIdForRow:(int)row;
- (int)rowForStreamId:(NSString*)streamId;
- (double)streamSizeForRow:(int)row;
- (NSString*)streamQualityForRow:(int)row;
- (NSString*)titleForRow:(int)row;
- (NSString*)recordingFlagForRow:(int)row;
- (BOOL)isRecording;
- (int)currentChannel;
- (void)sortStreamsByColumn:(NSTableColumn*)column descending:(BOOL)descending;

@end
