CCMain.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. //
  2. // CCMain.h
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 04/09/14.
  6. // Copyright (c) 2014 Marino Faggiana. All rights reserved.
  7. //
  8. // Author Marino Faggiana <marino.faggiana@nextcloud.com>
  9. //
  10. // This program is free software: you can redistribute it and/or modify
  11. // it under the terms of the GNU General Public License as published by
  12. // the Free Software Foundation, either version 3 of the License, or
  13. // (at your option) any later version.
  14. //
  15. // This program is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. // GNU General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU General Public License
  21. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. //
  23. #import <UIKit/UIKit.h>
  24. #import <MobileCoreServices/MobileCoreServices.h>
  25. #import <MediaPlayer/MediaPlayer.h>
  26. #import <AudioToolbox/AudioToolbox.h>
  27. #import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>
  28. #import "NSString+TruncateToWidth.h"
  29. #import "CCLogin.h"
  30. #import "CCGraphics.h"
  31. #import "CCSection.h"
  32. #import "CCUtility.h"
  33. #import "CCHud.h"
  34. #import "CCMenuAccount.h"
  35. #import "CCPeekPop.h"
  36. #import <MGSwipeTableCell/MGSwipeTableCell.h>
  37. @class tableMetadata;
  38. @class NCViewRichWorkspace;
  39. @interface CCMain : UIViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIViewControllerPreviewingDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, UIDocumentMenuDelegate, UIDocumentPickerDelegate, UISearchResultsUpdating, UISearchControllerDelegate, UISearchBarDelegate, UIScrollViewDelegate, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
  40. @property (nonatomic, weak) IBOutlet UITableView *tableView;
  41. @property (nonatomic, strong) NCViewRichWorkspace *viewRichWorkspace;
  42. @property (nonatomic, strong) tableMetadata *metadata;
  43. @property (nonatomic, strong) tableMetadata *metadataForPushDetail;
  44. @property (nonatomic, strong) NSString *selectorForPushDetail;
  45. @property (nonatomic, strong) UIButton *sortButton;
  46. @property (nonatomic, strong) NSString *serverUrl;
  47. @property (nonatomic, strong) NSString *titleMain;
  48. @property (nonatomic, strong) NSString *richWorkspaceText;
  49. @property (nonatomic, strong) UISearchController *searchController;
  50. @property (nonatomic, strong) UITapGestureRecognizer *singleFingerTap;
  51. @property (nonatomic, strong) NSString *blinkFileNamePath;
  52. @property (nonatomic, readonly, strong) UIImage *cellFavouriteImage;
  53. @property (nonatomic, readonly, strong) UIImage *cellTrashImage;
  54. @property BOOL isSelectedMode;
  55. - (void)shouldPerformSegue:(tableMetadata *)metadata selector:(NSString *)selector;
  56. - (void)performSegueDirectoryWithMetadata:(tableMetadata *)metadata blinkFileNamePath:(NSString *)blinkFileNamePath;
  57. - (void)saveToPhotoAlbum:(tableMetadata *)metadata;
  58. - (void)copyFileToPasteboard:(tableMetadata *)metadata;
  59. - (void)setUINavigationBarDefault;
  60. - (void)readFolder:(NSString *)serverUrl;
  61. - (void)readFileReloadFolder;
  62. - (void)uploadFileAsset:(NSMutableArray *)assets urls:(NSMutableArray *)urls serverUrl:(NSString *)serverUrl useSubFolder:(BOOL)useSubFolder session:(NSString *)session;
  63. - (void)openAssetsPickerController;
  64. - (void)openImportDocumentPicker;
  65. - (void)createFolder;
  66. - (void)setTableViewHeader;
  67. //expose methods for swift
  68. - (void)didSelectAll;
  69. - (void)deleteMetadatas;
  70. - (void)saveSelectedFiles;
  71. - (void)downloadSelectedFilesFolders;
  72. - (void)moveOpenWindow:(NSArray *)indexPaths;
  73. - (void)minCharTextFieldDidChange:(UITextField *)sender;
  74. - (void)actionDelete:(NSIndexPath *)indexPath;
  75. - (void)createRichWorkspace;
  76. @end