CCMain.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //
  2. // CCMain.h
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 04/09/14.
  6. // Copyright (c) 2017 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 "BKPasscodeViewController.h"
  29. #import "NSString+TruncateToWidth.h"
  30. #import "CCLogin.h"
  31. #import "CCCellMain.h"
  32. #import "CCCellMainTransfer.h"
  33. #import "CCGraphics.h"
  34. #import "CCSection.h"
  35. #import "CCUtility.h"
  36. #import "CCHud.h"
  37. #import "CCMenuAccount.h"
  38. #import "CCPeekPop.h"
  39. #import <MGSwipeTableCell/MGSwipeTableCell.h>
  40. @class tableMetadata;
  41. @class NCViewRichWorkspace;
  42. @interface CCMain : UIViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIViewControllerPreviewingDelegate, BKPasscodeViewControllerDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, UIDocumentMenuDelegate, UIDocumentPickerDelegate, UISearchResultsUpdating, UISearchControllerDelegate, UISearchBarDelegate, UIScrollViewDelegate, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
  43. @property (nonatomic, weak) IBOutlet UITableView *tableView;
  44. @property (nonatomic, strong) NCViewRichWorkspace *viewRichWorkspace;
  45. @property (nonatomic, strong) tableMetadata *metadata;
  46. @property (nonatomic, strong) tableMetadata *metadataForPushDetail;
  47. @property (nonatomic, strong) NSString *selectorForPushDetail;
  48. @property (nonatomic, strong) UIView *headerView;
  49. @property (nonatomic, strong) UIButton *sortButton;
  50. @property (nonatomic, strong) NSString *serverUrl;
  51. @property (nonatomic, strong) NSString *titleMain;
  52. @property (nonatomic, strong) NSString *richWorkspaceText;
  53. @property (nonatomic, strong) UISearchController *searchController;
  54. @property (nonatomic, strong) UITapGestureRecognizer *singleFingerTap;
  55. @property (nonatomic, strong) NSString *blinkFileNamePath;
  56. @property (nonatomic, readonly, strong) UIImage *cellFavouriteImage;
  57. @property (nonatomic, readonly, strong) UIImage *cellTrashImage;
  58. @property BOOL isSelectedMode;
  59. - (void)shouldPerformSegue:(tableMetadata *)metadata selector:(NSString *)selector;
  60. - (void)performSegueDirectoryWithControlPasscode:(BOOL)controlPasscode metadata:(tableMetadata *)metadata blinkFileNamePath:(NSString *)blinkFileNamePath;
  61. - (void)saveToPhotoAlbum:(tableMetadata *)metadata;
  62. - (void)copyFileToPasteboard:(tableMetadata *)metadata;
  63. - (void)setUINavigationBarDefault;
  64. - (void)readFolder:(NSString *)serverUrl;
  65. - (void)readFileReloadFolder;
  66. - (void)uploadFileAsset:(NSMutableArray *)assets urls:(NSMutableArray *)urls serverUrl:(NSString *)serverUrl useSubFolder:(BOOL)useSubFolder session:(NSString *)session;
  67. - (void)reloadDatasource:(NSString *)serverUrl ocId:(NSString *)ocId action:(NSInteger)action;
  68. - (void)clearDateReadDataSource:(NSNotification *)notification;
  69. - (void)cancelSearchBar;
  70. - (void)openAssetsPickerController;
  71. - (void)openImportDocumentPicker;
  72. - (void)createFolder;
  73. - (void)setTableViewHeader;
  74. //expose methods for swift
  75. - (void)didSelectAll;
  76. - (void)deleteMetadatas;
  77. - (void)saveSelectedFiles;
  78. - (void)downloadSelectedFilesFolders;
  79. - (void)moveOpenWindow:(NSArray *)indexPaths;
  80. - (void)minCharTextFieldDidChange:(UITextField *)sender;
  81. - (void)comandoLockPassword;
  82. - (void)actionDelete:(NSIndexPath *)indexPath;
  83. - (void)createRichWorkspace;
  84. @end