CCMain.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // CCMain.h
  3. // Nextcloud iOS
  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 "TWMessageBarManager.h"
  29. #import "AHKActionSheet.h"
  30. #import "BKPasscodeViewController.h"
  31. #import "NSString+TruncateToWidth.h"
  32. #import "CCLogin.h"
  33. #import "CCCellMain.h"
  34. #import "CCCellMainTransfer.h"
  35. #import "CCDetail.h"
  36. #import "CCShareOC.h"
  37. #import "CCShareInfoCMOC.h"
  38. #import "CCGraphics.h"
  39. #import "CCSection.h"
  40. #import "CCUtility.h"
  41. #import "CCHud.h"
  42. #import "CCMenuAccount.h"
  43. #import "CCPeekPop.h"
  44. #import <MGSwipeTableCell/MGSwipeTableCell.h>
  45. @class tableMetadata;
  46. @interface CCMain : UIViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIDocumentInteractionControllerDelegate, UIViewControllerPreviewingDelegate, BKPasscodeViewControllerDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, CCShareOCDelegate, CCPeekPopDelegate, UIDocumentMenuDelegate, UIDocumentPickerDelegate, UISearchResultsUpdating, UISearchControllerDelegate, UISearchBarDelegate, UIScrollViewDelegate, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
  47. @property (nonatomic, weak) IBOutlet UITableView *tableView;
  48. @property (nonatomic, strong) tableMetadata *metadata;
  49. @property (nonatomic, strong) tableMetadata *metadataForPushDetail;
  50. @property (nonatomic, strong) NSString *serverUrl;
  51. @property (nonatomic, strong) NSString *titleMain;
  52. @property (nonatomic, weak) CCShareOC *shareOC;
  53. @property (nonatomic, weak) CCDetail *detailViewController;
  54. @property (nonatomic, strong) UISearchController *searchController;
  55. @property (nonatomic, strong) UIView *reMenuBackgroundView;
  56. @property (nonatomic, strong) UITapGestureRecognizer *singleFingerTap;
  57. @property (nonatomic, strong) UIImage *imageTitle;
  58. @property BOOL isSelectedMode;
  59. - (void)openIn:(tableMetadata *)metadata;
  60. - (void)shouldPerformSegue:(tableMetadata *)metadata;
  61. - (void)saveToPhotoAlbum:(tableMetadata *)metadata;
  62. - (void)copyFileToPasteboard:(tableMetadata *)metadata;
  63. - (void)closeAllMenu;
  64. - (void)setUINavigationBarDefault;
  65. - (void)readFolder:(NSString *)serverUrl;
  66. - (void)readFileReloadFolder;
  67. - (void)uploadFileAsset:(NSMutableArray *)assets serverUrl:(NSString *)serverUrl useSubFolder:(BOOL)useSubFolder session:(NSString *)session;
  68. - (void)reloadDatasource:(NSString *)serverUrl fileID:(NSString *)fileID action:(NSInteger)action;
  69. - (void)openWindowShare:(tableMetadata *)metadata;
  70. - (void)clearDateReadDataSource:(NSNotification *)notification;
  71. - (void)cancelSearchBar;
  72. - (void)openAssetsPickerController;
  73. - (void)openImportDocumentPicker;
  74. - (void)createFolder;
  75. @end