CCMain.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 "AHKActionSheet.h"
  29. #import "BKPasscodeViewController.h"
  30. #import "NSString+TruncateToWidth.h"
  31. #import "CCLogin.h"
  32. #import "CCCellMain.h"
  33. #import "CCCellMainTransfer.h"
  34. #import "CCDetail.h"
  35. #import "CCGraphics.h"
  36. #import "CCSection.h"
  37. #import "CCUtility.h"
  38. #import "CCHud.h"
  39. #import "CCMenuAccount.h"
  40. #import "CCPeekPop.h"
  41. #import <MGSwipeTableCell/MGSwipeTableCell.h>
  42. @class tableMetadata;
  43. @interface CCMain : UIViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIViewControllerPreviewingDelegate, BKPasscodeViewControllerDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, UIDocumentMenuDelegate, UIDocumentPickerDelegate, UISearchResultsUpdating, UISearchControllerDelegate, UISearchBarDelegate, UIScrollViewDelegate, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
  44. @property (nonatomic, weak) IBOutlet UITableView *tableView;
  45. @property (nonatomic, strong) tableMetadata *metadata;
  46. @property (nonatomic, strong) tableMetadata *metadataForPushDetail;
  47. @property (nonatomic, strong) NSString *selectorForPushDetail;
  48. @property (nonatomic, strong) NSString *serverUrl;
  49. @property (nonatomic, strong) NSString *titleMain;
  50. @property (nonatomic, weak) CCDetail *detailViewController;
  51. @property (nonatomic, strong) UISearchController *searchController;
  52. @property (nonatomic, strong) UIView *reMenuBackgroundView;
  53. @property (nonatomic, strong) UITapGestureRecognizer *singleFingerTap;
  54. @property (nonatomic, strong) NSString *blinkFileNamePath;
  55. @property (nonatomic, readonly, strong) UIImage *cellFavouriteImage;
  56. @property (nonatomic, readonly, strong) UIImage *cellTrashImage;
  57. @property BOOL isSelectedMode;
  58. - (void)shouldPerformSegue:(tableMetadata *)metadata selector:(NSString *)selector;
  59. - (void)performSegueDirectoryWithControlPasscode:(BOOL)controlPasscode metadata:(tableMetadata *)metadata blinkFileNamePath:(NSString *)blinkFileNamePath;
  60. - (void)saveToPhotoAlbum:(tableMetadata *)metadata;
  61. - (void)copyFileToPasteboard:(tableMetadata *)metadata;
  62. - (void)closeAllMenu;
  63. - (void)setUINavigationBarDefault;
  64. - (void)readFolder:(NSString *)serverUrl;
  65. - (void)readFileReloadFolder;
  66. - (void)uploadFileAsset:(NSMutableArray *)assets 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. @end