CCMetadata.h 4.2 KB

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