summaryrefslogtreecommitdiffstats
path: root/macosx/ChapterTitles.h
blob: 960f292a14e86015fbbf5486e37797a34d5768f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*  ChapterTitles.h $

   This file is part of the HandBrake source code.
   Homepage: <http://handbrake.fr/>.
   It may be used under the terms of the GNU General Public License. */

#include <Cocoa/Cocoa.h>
#include "hb.h"

@interface ChapterTitles : NSObject {
    hb_title_t     *fTitle;
    NSMutableArray *fChapterTitlesArray;
}

// Trigger a refresh of data
- (void)resetWithTitle:(hb_title_t *)title;

// Get the list of chapter titles
- (NSArray*)chapterTitlesArray;

// Table View Delegates
- (NSUInteger)numberOfRowsInTableView:(NSTableView *)aTableView;

- (id)tableView:(NSTableView *)aTableView
      objectValueForTableColumn:(NSTableColumn *)aTableColumn
      row:(NSInteger)rowIndex;
      
- (void)tableView:(NSTableView *)aTableView
        setObjectValue:(id)anObject
        forTableColumn:(NSTableColumn *)aTableColumn
        row:(NSInteger)rowIndex;
@end