Library
ISODocumentListDataSource.h
1 //
2 // ISODocumentListDataSource.h
3 // SOSign
4 //
5 // Created by Florian Student on 6/27/13.
6 // Copyright (c) 2013 Florian Student. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "ISODocumentListDataSourceDelegate.h"
11 #import "ISODocument.h"
12 
13 @interface ISODocumentListDataSource : NSObject<NSFetchedResultsControllerDelegate>
14 
15 @property (nonatomic, weak) id<ISODocumentListDataSourceDelegate> delegate;
16 @property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;
17 
19 
20 - (int)numberOfRows;
21 - (ISODocument*)objectAtIndex:(int)index;
22 - (NSArray*)allDocuments;
23 - (NSArray*)allDocumentsWithDocumentId:(NSString*)documentId andExternalId:(NSString*)externalId; //if externalId is nil or the empty string, no filtering is done by this parameter
24 - (void)sortDescriptorsChanged:(NSArray*)newDescriptors;
25 - (void)reload;
26 
27 @end
int numberOfRows()
Definition: ISODocumentListDataSource.m:107
void reload()
Definition: ISODocumentListDataSource.m:96
NSFetchedResultsController * fetchedResultsController
Definition: ISODocumentListDataSource.h:16
ISODocumentListDataSource * sharedDocumentListDataSource()
Definition: ISODocumentListDataSource.m:44
Definition: ISODocumentListDataSource.h:13
Definition: ISODocument.h:16
NSArray * allDocuments()
Definition: ISODocumentListDataSource.m:128