// // FileListController.h // TransmissionRPCClient // // Created by Alexey Chechetkin on 30.06.15. // Copyright (c) 2015 Alexey Chechetkin. All rights reserved. // #import #import "CommonTableController.h" #define CONTROLLER_ID_FILELIST @"fileListController" @class FSDirectory; @protocol FileListControllerDelegate @optional - (void)fileListControllerNeedUpdateFilesForTorrentWithId:(int)torrentId; @optional - (void)fileListControllerStopDownloadingFilesWithIndexes:(NSArray*)indexes forTorrentWithId:(int)torrentId; @optional - (void)fileListControllerResumeDownloadingFilesWithIndexes:(NSArray*)indexes forTorrentWithId:(int)torrentId; @optional - (void)fileListControllerSetPriority:(int)priority forFilesWithIndexes:(NSArray*)indexes forTorrentWithId:(int)torrentId; @end @interface FileListController : CommonTableController @property(weak) id delegate; @property(nonatomic) NSArray* fileInfos; @property(nonatomic) int torrentId; @property(nonatomic) BOOL torrentIsFinished; @property(nonatomic) FSDirectory *fsDir; @end