CCMetadata.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. //
  2. // CCMetadata.h
  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 <UIKit/UIKit.h>
  24. #import <Photos/Photos.h>
  25. @class tableMetadata;
  26. /*
  27. @interface CCMetadata : NSObject //<NSCopying, NSCoding>
  28. @property (nonatomic, strong) NSString *account;
  29. @property BOOL cryptated;
  30. @property NSDate *date;
  31. @property BOOL directory;
  32. @property (nonatomic, strong) NSString *directoryID;
  33. @property BOOL errorPasscode;
  34. @property BOOL favorite;
  35. @property (nonatomic, strong) NSString *fileID;
  36. @property (nonatomic, strong) NSString *fileName;
  37. @property (nonatomic, strong) NSString *fileNameData;
  38. @property (nonatomic, strong) NSString *fileNamePrint;
  39. @property (nonatomic, strong) NSString *iconName;
  40. @property (nonatomic, strong) NSString *assetLocalIdentifier;
  41. @property (nonatomic, strong) NSString *model;
  42. @property (nonatomic ,strong) NSString *nameCurrentDevice;
  43. @property (nonatomic, strong) NSString *permissions;
  44. @property (nonatomic, strong) NSString *protocol;
  45. @property (nonatomic, strong) NSString *rev;
  46. @property (nonatomic, strong) NSString *session;
  47. @property (nonatomic, strong) NSString *sessionError;
  48. @property (nonatomic, strong) NSString *sessionID;
  49. @property (nonatomic, strong) NSString *sessionSelector;
  50. @property (nonatomic, strong) NSString *sessionSelectorPost;
  51. @property int sessionTaskIdentifier;
  52. @property int sessionTaskIdentifierPlist;
  53. @property long size;
  54. @property BOOL thumbnailExists;
  55. @property (nonatomic, strong) NSString *title;
  56. @property (nonatomic, strong) NSString *type;
  57. @property (nonatomic, strong) NSString *typeFile;
  58. @property (nonatomic, strong) NSString *uuid;
  59. //- (id)copyWithZone:(NSZone *)zone;
  60. //- (id)initWithCCMetadata:(CCMetadata *)metadata;
  61. @end
  62. */
  63. @interface CCMetadataNet : NSObject <NSCopying>
  64. @property (nonatomic, strong) NSString *account;
  65. @property (nonatomic, strong) NSString *action;
  66. @property BOOL cryptated;
  67. @property (nonatomic, strong) NSDate *date;
  68. @property (nonatomic, weak) id delegate;
  69. @property BOOL directory;
  70. @property (nonatomic, strong) NSString *directoryID;
  71. @property (nonatomic, strong) NSString *directoryIDTo;
  72. @property BOOL downloadData;
  73. @property BOOL downloadPlist;
  74. @property NSInteger errorCode;
  75. @property NSInteger errorRetry;
  76. @property (nonatomic, strong) NSString *expirationTime;
  77. @property (nonatomic, strong) NSString *fileID;
  78. @property (nonatomic, strong) NSString *fileName;
  79. @property (nonatomic, strong) NSString *fileNameTo;
  80. @property (nonatomic, strong) NSString *fileNameLocal;
  81. @property (nonatomic, strong) NSString *fileNamePrint;
  82. @property (nonatomic, strong) NSString *assetLocalIdentifier;
  83. @property (nonatomic, strong) tableMetadata *metadata;
  84. @property (nonatomic, strong) id options;
  85. @property (nonatomic, strong) NSString *password;
  86. @property (nonatomic, strong) NSString *pathFolder;
  87. @property NSInteger priority;
  88. @property (nonatomic, strong) NSOperationQueue *queue;
  89. @property (nonatomic, strong) NSString *rev;
  90. @property (nonatomic, strong) NSString *serverUrl;
  91. @property (nonatomic, strong) NSString *serverUrlTo;
  92. @property (nonatomic, strong) NSString *selector;
  93. @property (nonatomic, strong) NSString *selectorPost;
  94. @property (nonatomic, strong) NSString *session;
  95. @property (nonatomic, strong) NSString *sessionID;
  96. @property (nonatomic, strong) NSString *share;
  97. @property NSInteger shareeType;
  98. @property NSInteger sharePermission;
  99. @property long size;
  100. @property NSInteger taskStatus;
  101. - (id)initWithAccount:(NSString *)withAccount;
  102. - (id)copyWithZone:(NSZone *)zone;
  103. @end