CCMain.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. //
  2. // CCMain.h
  3. // Crypto Cloud Technology Nextcloud
  4. //
  5. // Created by Marino Faggiana on 04/09/14.
  6. // Copyright (c) 2014 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 "SSZipArchive.h"
  29. #import "AHKActionSheet.h"
  30. #import "CTAssetSelectionLabel.h"
  31. #import "BKPasscodeViewController.h"
  32. #import "NSString+TruncateToWidth.h"
  33. #import "UINavigationController+CCProgress.h"
  34. #import "CCLoginNCOC.h"
  35. #import "CCCellMain.h"
  36. #import "CCCellMainTransfer.h"
  37. #import "CCAdd.h"
  38. #import "CCMove.h"
  39. #import "CCDetail.h"
  40. #import "CTAssetsPickerController.h"
  41. #import "CCTemplates.h"
  42. #import "CCShareOC.h"
  43. #import "CCShareInfoCMOC.h"
  44. #import "CCNetworking.h"
  45. #import "CCCoreData.h"
  46. #import "CCMove.h"
  47. #import "CCGraphics.h"
  48. #import "CCSection.h"
  49. #import "CCUtility.h"
  50. #import "CCHud.h"
  51. #import "CCMenu.h"
  52. #import "CCControlCenter.h"
  53. #import "CCPeekPop.h"
  54. #import "CCAccountWeb.h"
  55. #import "CCBancomat.h"
  56. #import "CCCartaDiCredito.h"
  57. #import "CCCartaIdentita.h"
  58. #import "CCContoCorrente.h"
  59. #import "CCNote.h"
  60. #import "CCPassaporto.h"
  61. #import "CCPatenteGuida.h"
  62. #ifdef CC
  63. #import "CCShareDB.h"
  64. @interface CCMain : UITableViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIDocumentInteractionControllerDelegate, UIViewControllerPreviewingDelegate, CCMoveDelegate, CTAssetsPickerControllerDelegate, BKPasscodeViewControllerDelegate ,CCAddDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, CCNetworkingDelegate, CCShareOCDelegate, CCShareDBDelegate, CCAccountWebDelegate, CCBancomatDelegate, CCCartaDiCreditoDelegate, CCCartaIdentitaDelegate, CCContoCorrenteDelegate, CCNoteDelegate, CCPassaportoDelegate, CCPatenteGuidaDelegate, CCDetailViewDelegate, CCPeekPopDelegate>
  65. @property (nonatomic, weak) CCShareDB* shareDB;
  66. #endif
  67. #ifdef NC
  68. @interface CCMain : UITableViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, UIGestureRecognizerDelegate, UIDocumentInteractionControllerDelegate, UIViewControllerPreviewingDelegate, CCMoveDelegate, CTAssetsPickerControllerDelegate, BKPasscodeViewControllerDelegate ,CCAddDelegate, UISplitViewControllerDelegate, UIPopoverControllerDelegate, CCNetworkingDelegate, CCShareOCDelegate, CCAccountWebDelegate, CCBancomatDelegate, CCCartaDiCreditoDelegate, CCCartaIdentitaDelegate, CCContoCorrenteDelegate, CCNoteDelegate, CCPassaportoDelegate, CCPatenteGuidaDelegate, CCDetailViewDelegate, CCPeekPopDelegate>
  69. #endif
  70. @property (nonatomic ,strong) NSString *localServerUrl;
  71. @property BOOL isFolderEncrypted;
  72. @property (nonatomic, weak) NSString *titleMain;
  73. @property (nonatomic, weak) NSString *textBackButton;
  74. @property (nonatomic, weak) CCShareOC* shareOC;
  75. @property (nonatomic, weak) CCDetail *detailViewController;
  76. @property (nonatomic, weak) CCLoginNCOC *loginVC;
  77. - (void)createFolderCameraUpload;
  78. - (void)createFolder:(NSString *)fileNameFolder folderCameraUpload:(BOOL)folderCameraUpload;
  79. - (void)readFolderWithForced:(BOOL)forced;
  80. - (void)uploadFileAsset:(NSMutableArray *)assets serverUrl:(NSString *)serverUrl cryptated:(BOOL)cryptated session:(NSString *)session;
  81. - (void)progressTask:(NSString *)fileID serverUrl:(NSString *)serverUrl cryptated:(BOOL)cryptated progress:(float)progress;
  82. - (void)reloadTaskButton:(CCMetadata *)metadata;
  83. - (void)cancelTaskButton:(CCMetadata *)metadata reloadTable:(BOOL)reloadTable;
  84. - (void)stopTaskButton:(CCMetadata *)metadata;
  85. - (void)getDataSourceWithReloadTableView;
  86. - (void)getDataSourceWithReloadTableView:(NSString *)directoryID fileID:(NSString *)fileID selector:(NSString *)selector;
  87. - (void)requestSharedByServer;
  88. - (void)requestServerInformation;
  89. - (void)synchronizedFolderGraphicsServerUrl:(NSString *)serverUrl animation:(BOOL)animation;
  90. - (void)clearDateReadDataSource:(NSNotification *)notification;
  91. @end