/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Docs/GDataEntryDocBase.h

http://macfuse.googlecode.com/ · C Header · 101 lines · 49 code · 29 blank · 23 comment · 1 complexity · 6fde6226f729d74f4438263c7705ed0a MD5 · raw file

  1. /* Copyright (c) 2007 Google Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. //
  16. // GDataEntryDocBase.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_DOCS_SERVICE
  19. #import "GDataEntryBase.h"
  20. #import "GDataFeedLink.h"
  21. #import "GDataDocConstants.h"
  22. @interface GDataEntryDocBase : GDataEntryBase
  23. + (id)documentEntry;
  24. // extensions
  25. - (GDataDateTime *)lastViewed;
  26. - (void)setLastViewed:(GDataDateTime *)dateTime;
  27. - (GDataDateTime *)sharedWithMe;
  28. - (void)setSharedWithMe:(GDataDateTime *)dateTime;
  29. - (GDataDateTime *)lastModifiedByMe;
  30. - (void)setLastModifiedByMe:(GDataDateTime *)dateTime;
  31. - (NSNumber *)writersCanInvite; // bool
  32. - (void)setWritersCanInvite:(NSNumber *)num;
  33. - (GDataPerson *)lastModifiedBy;
  34. - (void)setLastModifiedBy:(GDataPerson *)obj;
  35. - (NSNumber *)quotaBytesUsed; // long long
  36. - (void)setQuotaBytesUsed:(NSNumber *)num;
  37. - (NSString *)documentDescription;
  38. - (void)setDocumentDescription:(NSString *)str;
  39. - (NSString *)MD5Checksum;
  40. - (void)setMD5Checksum:(NSString *)str;
  41. - (NSString *)filename;
  42. - (void)setFilename:(NSString *)str;
  43. - (NSString *)suggestedFilename;
  44. - (void)setSuggestedFilename:(NSString *)str;
  45. - (GDataDateTime *)lastCommented;
  46. - (void)setLastCommented:(GDataDateTime *)str;
  47. - (NSNumber *)changestamp; // long long
  48. - (void)setChangestamp:(NSNumber *)num;
  49. - (BOOL)isRemoved;
  50. - (void)setIsRemoved:(BOOL)flag;
  51. - (BOOL)hasPathToRoot;
  52. - (void)setHasPathToRoot:(BOOL)flag;
  53. // categories
  54. - (BOOL)isStarred;
  55. - (void)setIsStarred:(BOOL)flag;
  56. - (BOOL)isHidden;
  57. - (void)setIsHidden:(BOOL)flag;
  58. - (BOOL)isViewed;
  59. - (void)setIsViewed:(BOOL)flag;
  60. - (BOOL)isShared;
  61. - (void)setIsShared:(BOOL)flag;
  62. // convenience accessors
  63. - (NSArray *)parentLinks;
  64. - (GDataLink *)thumbnailLink;
  65. // An alternate self link. Used only in GDataEntryDocBase subclasses that
  66. // appear in GDataFeedDocChange. The value is the selfLink of the
  67. // GDataEntryDocBase.
  68. - (GDataLink *)alternateSelfLink;
  69. - (GDataFeedLink *)ACLFeedLink;
  70. - (GDataFeedLink *)revisionFeedLink;
  71. @end
  72. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_DOCS_SERVICE