CCMetadata.m 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //
  2. // CCMetadata.m
  3. // Crypto Cloud Technology Nextcloud
  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 "CCMetadata.h"
  24. @implementation CCMetadataNet
  25. - (id)init
  26. {
  27. self = [super init];
  28. self.priority = NSOperationQueuePriorityNormal;
  29. return self;
  30. }
  31. - (id)initWithAccount:(NSString *)withAccount
  32. {
  33. self = [super init];
  34. if (self) {
  35. _account = withAccount;
  36. _priority = NSOperationQueuePriorityNormal;
  37. }
  38. return self;
  39. }
  40. /*
  41. - (id)copyWithZone: (NSZone *) zone
  42. {
  43. CCMetadataNet *metadataNet = [[CCMetadataNet allocWithZone: zone] init];
  44. [metadataNet setAccount: self.account];
  45. [metadataNet setAction: self.action];
  46. [metadataNet setAssetLocalIdentifier: self.assetLocalIdentifier];
  47. [metadataNet setCryptated: self.cryptated];
  48. [metadataNet setDate: self.date];
  49. [metadataNet setDelegate: self.delegate];
  50. [metadataNet setDirectory: self.directory];
  51. [metadataNet setDirectoryID: self.directoryID];
  52. [metadataNet setDirectoryIDTo: self.directoryIDTo];
  53. [metadataNet setDownloadData: self.downloadData];
  54. [metadataNet setDownloadPlist: self.downloadPlist];
  55. [metadataNet setErrorCode: self.errorCode];
  56. [metadataNet setErrorRetry: self.errorRetry];
  57. [metadataNet setExpirationTime: self.expirationTime];
  58. [metadataNet setFileID: self.fileID];
  59. [metadataNet setFileName: self.fileName];
  60. [metadataNet setFileNameTo: self.fileNameTo];
  61. [metadataNet setFileNameLocal: self.fileNameLocal];
  62. [metadataNet setFileNamePrint: self.fileNamePrint];
  63. [metadataNet setMetadata: self.metadata];
  64. [metadataNet setOptions: self.options];
  65. [metadataNet setPassword: self.password];
  66. [metadataNet setPathFolder: self.pathFolder];
  67. [metadataNet setPriority: self.priority];
  68. [metadataNet setQueue: self.queue];
  69. [metadataNet setRev:self.rev];
  70. [metadataNet setServerUrl: self.serverUrl];
  71. [metadataNet setServerUrlTo: self.serverUrlTo];
  72. [metadataNet setSelector: self.selector];
  73. [metadataNet setSelectorPost: self.selectorPost];
  74. [metadataNet setSession: self.session];
  75. [metadataNet setSessionID: self.sessionID];
  76. [metadataNet setShare: self.share];
  77. [metadataNet setShareeType: self.shareeType];
  78. [metadataNet setSharePermission: self.sharePermission];
  79. [metadataNet setSize: self.size];
  80. [metadataNet setTaskStatus: self.taskStatus];
  81. return metadataNet;
  82. }
  83. */
  84. @end