//
//  TableViewSelectionDataProvider.h
//
//

#import <UIKit/UIKit.h>
#import "DataSourceBase.h"

// Providing selection data from a UITableView.
// Assumes that the UITableView has only one section.

@interface TableViewSelectionDataProvider : DataSourceBase <UITableViewDelegate>
@property (nonatomic, weak) IBOutlet UITableView * tableView;
@end


@interface UITableView (TableViewSelectionDataProviderExtension)

// Returns a single index for the selection.
@property (nonatomic) NSNumber * selectedItemIndex;

// Returns all indices for the selection.
//@property (nonatomic) NSArray * selectedItemIndices;

@end
