CCManageCameraUpload.m 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. //
  2. // CCManageCameraUpload.m
  3. // Crypto Cloud Technology Nextcloud
  4. //
  5. // Created by Marino Faggiana on 01/09/15.
  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 "CCManageCameraUpload.h"
  24. #import "AppDelegate.h"
  25. #import "NCBridgeSwift.h"
  26. @implementation CCManageCameraUpload
  27. // From Settings
  28. - (id)initWithCoder:(NSCoder *)aDecoder
  29. {
  30. if (self = [super initWithCoder:aDecoder]) {
  31. [self initializeForm];
  32. }
  33. return self;
  34. }
  35. // From Photos
  36. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  37. {
  38. self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  39. if (self) {
  40. UIBarButtonItem *doneButton = [[UIBarButtonItem alloc ] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(done:)];
  41. self.navigationItem.rightBarButtonItem = doneButton;
  42. [self initializeForm];
  43. }
  44. return self;
  45. }
  46. - (void)initializeForm
  47. {
  48. XLFormDescriptor *form ;
  49. XLFormSectionDescriptor *section;
  50. XLFormRowDescriptor *row;
  51. tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
  52. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeTheming) name:@"changeTheming" object:nil];
  53. form = [XLFormDescriptor formDescriptorWithTitle:NSLocalizedString(@"_uploading_from_camera_", nil)];
  54. // Camera Upload
  55. section = [XLFormSectionDescriptor formSection];
  56. [form addFormSection:section];
  57. section.footerTitle = NSLocalizedString(@"_photo_folder_photocamera_", nil);
  58. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"cameraupload" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_upload_camera_", nil)];
  59. if (tableAccount.cameraUpload) row.value = @1;
  60. else row.value = @0;
  61. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  62. [section addFormRow:row];
  63. // Camera Upload Photo
  64. section = [XLFormSectionDescriptor formSection];
  65. [form addFormSection:section];
  66. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadphoto" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_upload_foto_camera_", nil)];
  67. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  68. //if ([CCCoreData getCameraUploadPhotoActiveAccount:app.activeAccount]) row.value = @1;
  69. if (tableAccount.cameraUploadPhoto) row.value = @1;
  70. else row.value = @0;
  71. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  72. [section addFormRow:row];
  73. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadwwanphoto" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_wifi_only_", nil)];
  74. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  75. //if ([CCCoreData getCameraUploadWWanPhotoActiveAccount:app.activeAccount] == YES) row.value = @1;
  76. if (tableAccount.cameraUploadWWAnPhoto) row.value = @1;
  77. else row.value = @0;
  78. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  79. [section addFormRow:row];
  80. // Camera Upload Video
  81. section = [XLFormSectionDescriptor formSection];
  82. [form addFormSection:section];
  83. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadvideo" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_upload_video_camera_", nil)];
  84. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  85. if (tableAccount.cameraUploadVideo) row.value = @1;
  86. else row.value = @0;
  87. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  88. [section addFormRow:row];
  89. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadwwanvideo" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_wifi_only_", nil)];
  90. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  91. if (tableAccount.cameraUploadWWAnVideo) row.value = @1;
  92. else row.value = @0;
  93. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  94. [section addFormRow:row];
  95. // Camera Upload Background
  96. section = [XLFormSectionDescriptor formSection];
  97. [form addFormSection:section];
  98. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadbackground" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_upload_camera_background_", nil)];
  99. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  100. if (tableAccount.cameraUploadBackground) row.value = @1;
  101. else row.value = @0;
  102. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  103. [section addFormRow:row];
  104. // Camera Upload All Photo
  105. section = [XLFormSectionDescriptor formSection];
  106. [form addFormSection:section];
  107. NSString *title = NSLocalizedString(@"_upload_camera_fullphotos_", nil);
  108. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadallphotos" rowType:XLFormRowDescriptorTypeBooleanSwitch title:title];
  109. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  110. row.value = 0;
  111. if (tableAccount.cameraUploadFull) row.value = @1;
  112. else row.value = @0;
  113. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  114. [section addFormRow:row];
  115. // Camera Upload create subfolder
  116. section = [XLFormSectionDescriptor formSection];
  117. [form addFormSection:section];
  118. row = [XLFormRowDescriptor formRowDescriptorWithTag:@"camerauploadcreatesubfolder" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_upload_camera_create_subfolder_", nil)];
  119. row.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  120. if (tableAccount.cameraUploadCreateSubfolder) row.value = @1;
  121. else row.value = @0;
  122. [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
  123. [section addFormRow:row];
  124. // end
  125. section = [XLFormSectionDescriptor formSection];
  126. [form addFormSection:section];
  127. self.form = form;
  128. }
  129. // Apparirà
  130. - (void)viewWillAppear:(BOOL)animated
  131. {
  132. [super viewWillAppear:animated];
  133. self.tableView.backgroundColor = [NCBrandColor sharedInstance].tableBackground;
  134. // Color
  135. [app aspectNavigationControllerBar:self.navigationController.navigationBar encrypted:NO online:[app.reachability isReachable] hidden:NO];
  136. [app aspectTabBar:self.tabBarController.tabBar hidden:NO];
  137. // Request permission for camera roll access
  138. [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
  139. switch (status) {
  140. case PHAuthorizationStatusRestricted:
  141. NSLog(@"[LOG] user can't grant access to camera roll");
  142. break;
  143. case PHAuthorizationStatusDenied:
  144. NSLog(@"[LOG] user denied access to camera roll");
  145. break;
  146. default:
  147. break;
  148. }
  149. }];
  150. [self reloadForm];
  151. }
  152. - (void)changeTheming
  153. {
  154. if (self.isViewLoaded && self.view.window)
  155. [app changeTheming:self];
  156. }
  157. -(void)formRowDescriptorValueHasChanged:(XLFormRowDescriptor *)rowDescriptor oldValue:(id)oldValue newValue:(id)newValue
  158. {
  159. [super formRowDescriptorValueHasChanged:rowDescriptor oldValue:oldValue newValue:newValue];
  160. tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
  161. if ([rowDescriptor.tag isEqualToString:@"cameraupload"]) {
  162. if ([[rowDescriptor.value valueData] boolValue] == YES) {
  163. // Create Folder cameraUpload
  164. if (app.activeMain)
  165. [app.activeMain createFolderCameraUpload];
  166. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUpload" state:YES];
  167. // Default
  168. [[NCManageDatabase sharedInstance] setAccountCameraUploadFolderName:nil];
  169. [[NCManageDatabase sharedInstance] setAccountCameraUploadFolderPath:nil activeUrl:app.activeUrl];
  170. // verifichiamo che almeno uno dei servizi (foto video) siano attivi, in caso contrario attiviamo le foto
  171. if (tableAccount.cameraUploadPhoto == NO && tableAccount.cameraUploadVideo == NO)
  172. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadPhoto" state:YES];
  173. // Settings date
  174. if (tableAccount.cameraUploadPhoto)
  175. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeImage assetDate:[NSDate date]];
  176. if (tableAccount.cameraUploadVideo)
  177. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeVideo assetDate:[NSDate date]];
  178. } else {
  179. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUpload" state:NO];
  180. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadFull" state:NO];
  181. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeImage assetDate:nil];
  182. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeVideo assetDate:nil];
  183. // remove
  184. [[NCManageDatabase sharedInstance] clearTable:[tableAutomaticUpload class] account:app.activeAccount];
  185. }
  186. // Initialize Camera Upload
  187. [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"initStateCameraUpload" object:nil];
  188. [self reloadForm];
  189. }
  190. if ([rowDescriptor.tag isEqualToString:@"camerauploadbackground"]) {
  191. if ([[rowDescriptor.value valueData] boolValue] == YES) {
  192. BOOL isLocationIsEnabled = NO;
  193. if (app.activePhotosCameraUpload)
  194. [app.activePhotosCameraUpload checkIfLocationIsEnabled];
  195. if(isLocationIsEnabled == YES) {
  196. UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"_cameraupload_background_title_", nil) message:[CCUtility localizableBrand:@"_cameraupload_background_msg_" table:nil] delegate:nil cancelButtonTitle:nil otherButtonTitles:NSLocalizedString(@"_ok_", nil), nil];
  197. [alertView show];
  198. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadBackground" state:YES];
  199. } else {
  200. [self reloadForm];
  201. }
  202. } else {
  203. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadBackground" state:NO];
  204. [[CCManageLocation sharedInstance] stopSignificantChangeUpdates];
  205. }
  206. }
  207. if ([rowDescriptor.tag isEqualToString:@"camerauploadallphotos"]) {
  208. if ([[rowDescriptor.value valueData] boolValue] == YES) {
  209. [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"setupCameraUploadFull" object:nil];
  210. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadFull" state:YES];
  211. } else {
  212. [[NCManageDatabase sharedInstance] clearTable:[tableAutomaticUpload class] account:app.activeAccount];
  213. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadFull" state:NO];
  214. }
  215. }
  216. if ([rowDescriptor.tag isEqualToString:@"camerauploadphoto"]) {
  217. if ([[rowDescriptor.value valueData] boolValue] == YES) {
  218. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeImage assetDate:[NSDate date]];
  219. } else {
  220. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeImage assetDate:nil];
  221. }
  222. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadPhoto" state:[[rowDescriptor.value valueData] boolValue]];
  223. }
  224. if ([rowDescriptor.tag isEqualToString:@"camerauploadwwanphoto"]) {
  225. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadWWAnPhoto" state:[[rowDescriptor.value valueData] boolValue]];
  226. }
  227. if ([rowDescriptor.tag isEqualToString:@"camerauploadvideo"]) {
  228. if ([[rowDescriptor.value valueData] boolValue] == YES) {
  229. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeVideo assetDate:[NSDate date]];
  230. } else {
  231. [[NCManageDatabase sharedInstance] setAccountCameraUploadDateAssetType:PHAssetMediaTypeVideo assetDate:nil];
  232. }
  233. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadVideo" state:[[rowDescriptor.value valueData] boolValue]];
  234. }
  235. if ([rowDescriptor.tag isEqualToString:@"camerauploadwwanvideo"]) {
  236. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadWWAnVideo" state:[[rowDescriptor.value valueData] boolValue]];
  237. }
  238. if ([rowDescriptor.tag isEqualToString:@"camerauploadcreatesubfolder"]) {
  239. [[NCManageDatabase sharedInstance] setAccountCameraStateFiled:@"cameraUploadCreateSubfolder" state:[[rowDescriptor.value valueData] boolValue]];
  240. }
  241. }
  242. - (void)done:(XLFormRowDescriptor *)sender
  243. {
  244. [self dismissViewControllerAnimated:YES completion:nil];
  245. }
  246. - (void)reloadForm
  247. {
  248. self.form.delegate = nil;
  249. XLFormRowDescriptor *rowCameraupload = [self.form formRowWithTag:@"cameraupload"];
  250. XLFormRowDescriptor *rowCamerauploadphoto = [self.form formRowWithTag:@"camerauploadphoto"];
  251. XLFormRowDescriptor *rowCamerauploadcryptatedphoto = [self.form formRowWithTag:@"camerauploadcryptatedphoto"];
  252. XLFormRowDescriptor *rowCamerauploadwwanphoto = [self.form formRowWithTag:@"camerauploadwwanphoto"];
  253. XLFormRowDescriptor *rowCamerauploadvideo = [self.form formRowWithTag:@"camerauploadvideo"];
  254. XLFormRowDescriptor *rowCamerauploadcryptatedvideo = [self.form formRowWithTag:@"camerauploadcryptatedvideo"];
  255. XLFormRowDescriptor *rowCamerauploadwwanvideo = [self.form formRowWithTag:@"camerauploadwwanvideo"];
  256. XLFormRowDescriptor *rowCamerauploadBackground = [self.form formRowWithTag:@"camerauploadbackground"];
  257. XLFormRowDescriptor *rowCamerauploadAllPhotos = [self.form formRowWithTag:@"camerauploadallphotos"];
  258. XLFormRowDescriptor *rowCamerauploadCreateSubfolder = [self.form formRowWithTag:@"camerauploadcreatesubfolder"];
  259. // - STATUS ---------------------
  260. tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
  261. if (tableAccount.cameraUpload)
  262. [rowCameraupload setValue:@1]; else [rowCameraupload setValue:@0];
  263. //if ([CCCoreData getCameraUploadPhotoActiveAccount:app.activeAccount])
  264. if (tableAccount.cameraUploadPhoto)
  265. [rowCamerauploadphoto setValue:@1]; else [rowCamerauploadphoto setValue:@0];
  266. //if ([CCCoreData getCameraUploadWWanPhotoActiveAccount:app.activeAccount])
  267. if (tableAccount.cameraUploadWWAnPhoto)
  268. [rowCamerauploadwwanphoto setValue:@1]; else [rowCamerauploadwwanphoto setValue:@0];
  269. //if ([CCCoreData getCameraUploadVideoActiveAccount:app.activeAccount])
  270. if (tableAccount.cameraUploadVideo)
  271. [rowCamerauploadvideo setValue:@1]; else [rowCamerauploadvideo setValue:@0];
  272. //if ([CCCoreData getCameraUploadWWanVideoActiveAccount:app.activeAccount])
  273. if (tableAccount.cameraUploadWWAnVideo)
  274. [rowCamerauploadwwanvideo setValue:@1]; else [rowCamerauploadwwanvideo setValue:@0];
  275. //if ([CCCoreData getCameraUploadBackgroundActiveAccount:app.activeAccount])
  276. if (tableAccount.cameraUploadBackground)
  277. [rowCamerauploadBackground setValue:@1]; else [rowCamerauploadBackground setValue:@0];
  278. //if ([CCCoreData getCameraUploadFullPhotosActiveAccount:app.activeAccount])
  279. if (tableAccount.cameraUploadFull)
  280. [rowCamerauploadAllPhotos setValue:@1]; else [rowCamerauploadAllPhotos setValue:@0];
  281. //if ([CCCoreData getCameraUploadCreateSubfolderActiveAccount:app.activeAccount])
  282. if (tableAccount.cameraUploadCreateSubfolder)
  283. [rowCamerauploadCreateSubfolder setValue:@1]; else [rowCamerauploadCreateSubfolder setValue:@0];
  284. // - HIDDEN ---------------------
  285. rowCamerauploadphoto.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  286. rowCamerauploadcryptatedphoto.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  287. rowCamerauploadwwanphoto.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  288. rowCamerauploadvideo.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  289. rowCamerauploadcryptatedvideo.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  290. rowCamerauploadwwanvideo.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  291. rowCamerauploadBackground.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  292. rowCamerauploadAllPhotos.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  293. rowCamerauploadCreateSubfolder.hidden = [NSString stringWithFormat:@"$%@==0", @"cameraupload"];
  294. // ----------------------
  295. [self.tableView reloadData];
  296. self.form.delegate = self;
  297. }
  298. - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
  299. {
  300. tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
  301. NSString *sectionName;
  302. switch (section)
  303. {
  304. case 0:
  305. sectionName = NSLocalizedString(@"_uploading_from_camera_", nil);
  306. break;
  307. case 1:
  308. if (tableAccount.cameraUpload) sectionName = NSLocalizedString(@"_upload_automatic_photos_", nil);
  309. else sectionName = @"";
  310. break;
  311. case 2:
  312. if (tableAccount.cameraUpload) sectionName = NSLocalizedString(@"_upload_automatic_videos_", nil);
  313. else sectionName = @"";
  314. break;
  315. case 3:
  316. if (tableAccount.cameraUpload) sectionName = NSLocalizedString(@"_upload_camera_background_", nil);
  317. else sectionName = @"";
  318. break;
  319. case 4:
  320. if (tableAccount.cameraUpload) sectionName = NSLocalizedString(@"_upload_camera_fullphotos_", nil);
  321. else sectionName = @"";
  322. break;
  323. case 5:
  324. if (tableAccount.cameraUpload) sectionName = NSLocalizedString(@"_upload_camera_create_subfolder_", nil);
  325. else sectionName = @"";
  326. break;
  327. }
  328. return sectionName;
  329. }
  330. - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
  331. {
  332. tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
  333. NSString *sectionName;
  334. switch (section)
  335. {
  336. case 0:
  337. sectionName = [CCUtility localizableBrand:@"_photo_folder_photocamera_" table:nil];
  338. break;
  339. case 3:
  340. if (tableAccount.cameraUpload) sectionName = [CCUtility localizableBrand:@"_photo_folder_background_" table:nil];
  341. else sectionName = @"";
  342. break;
  343. case 4:
  344. if (tableAccount.cameraUpload) sectionName = [CCUtility localizableBrand:@"_upload_camera_fullphotos_footer_" table:nil];
  345. else sectionName = @"";
  346. break;
  347. case 5:
  348. if (tableAccount.cameraUpload) sectionName = [CCUtility localizableBrand:@"_upload_camera_create_subfolder_footer_" table:nil];
  349. else sectionName = @"";
  350. break;
  351. }
  352. return sectionName;
  353. }
  354. @end