CCMain.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // CCMain.h
  3. // Nextcloud iOS
  4. //
  5. // Created by Marino Faggiana on 04/09/14.
  6. // Copyright (c) 2017 TWS. All rights reserved.
  7. //
  8. // Author Marino Faggiana <m.faggiana@twsweb.it>
  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 "TWMessageBarManager.h"
  28. #import "MGSwipeTableCell.h"
  29. #import "AHKActionSheet.h"
  30. #import "CTAssetSelectionLabel.h"
  31. #import "BKPasscodeViewController.h"
  32. #import "NSString+TruncateToWidth.h"
  33. #import "UIScrollView+EmptyDataSet.h"
  34. #import "CCLogin.h"
  35. #import "CCCellMain.h"
  36. #import "CCCellMainTransfer.h"
  37. #import "CCMove.h"
  38. #import "CCDetail.h"
  39. #import "CTAssetsPickerController.h"
  40. #import "CCShareOC.h"
  41. #import "CCShareInfoCMOC.h"
  42. #import "CCNetworking.h"
  43. #import "CCMove.h"
  44. #import "CCGraphics.h"
  45. #import "CCSection.h"
  46. #import "CCUtility.h"
  47. #import "CCHud.h"
  48. #import "CCMenuAccount.h"
  49. #import "CCPeekPop.h"
  50. @class tableMetadata;
  51. @interface CCMain : UIViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIDocumentInteractionControllerDelegate, UIViewControllerPreviewingDelegate, CCMoveDelegate, CTAssetsPickerControllerDelegate, BKPasscodeViewControllerDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, CCNetworkingDelegate, CCShareOCDelegate, CCPeekPopDelegate, UIDocumentMenuDelegate, UIDocumentPickerDelegate, UISearchResultsUpdating, UISearchControllerDelegate, UISearchBarDelegate, UIScrollViewDelegate, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
  52. @property (nonatomic, weak) IBOutlet UITableView *tableView;
  53. @property (nonatomic, strong) UIRefreshControl *refreshControl;
  54. @property (nonatomic, strong) NSString *serverUrl;
  55. @property (nonatomic, strong) NSString *titleMain;
  56. @property (nonatomic, weak) CCShareOC *shareOC;
  57. @property (nonatomic, weak) CCDetail *detailViewController;
  58. @property (nonatomic, strong) UISearchController *searchController;
  59. @property (nonatomic, strong) UIView *reMenuBackgroundView;
  60. @property (nonatomic, strong) UITapGestureRecognizer *singleFingerTap;
  61. @property (nonatomic, strong) UIImage *imageTitle;
  62. @property BOOL isSelectedMode;
  63. - (void)closeAllMenu;
  64. - (void)returnCreate:(NSInteger)type;
  65. - (void)setUINavigationBarDefault;
  66. - (void)readFolder:(NSString *)serverUrl;
  67. - (void)readFileReloadFolder;
  68. - (void)uploadFileAsset:(NSMutableArray *)assets serverUrl:(NSString *)serverUrl useSubFolder:(BOOL)useSubFolder session:(NSString *)session;
  69. - (void)reloadDatasource;
  70. - (void)reloadDatasource:(NSString *)serverUrl;
  71. - (void)openWindowShare:(tableMetadata *)metadata;
  72. - (void)clearDateReadDataSource:(NSNotification *)notification;
  73. - (void)cancelSearchBar;
  74. @end