/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataEntryLink.h

http://macfuse.googlecode.com/ · C++ Header · 50 lines · 19 code · 12 blank · 19 comment · 0 complexity · f176585e8d679bfa97a9d65ad6750296 MD5 · raw file

  1. /* Copyright (c) 2007-2008 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. // GDataEntryLink.h
  17. //
  18. #import "GDataObject.h"
  19. @class GDataEntryBase;
  20. // used inside GDataWhere, a link to an entry, like
  21. // <gd:entryLink href="http://gmail.com/jo/contacts/Jo">
  22. @interface GDataEntryLink : GDataObject <GDataExtension> {
  23. GDataEntryBase *entry_;
  24. }
  25. + (GDataEntryLink *)entryLinkWithHref:(NSString *)href
  26. isReadOnly:(BOOL)isReadOnly;
  27. - (id)initWithXMLElement:(NSXMLElement *)element
  28. parent:(GDataObject *)parent;
  29. - (NSXMLElement *)XMLElement;
  30. - (NSString *)href;
  31. - (void)setHref:(NSString *)str;
  32. - (BOOL)isReadOnly;
  33. - (void)setIsReadOnly:(BOOL)isReadOnly;
  34. - (NSString *)rel;
  35. - (void)setRel:(NSString *)str;
  36. - (GDataEntryBase *)entry;
  37. - (void)setEntry:(GDataEntryBase *)entry;
  38. @end