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

http://macfuse.googlecode.com/ · C++ Header · 56 lines · 22 code · 14 blank · 20 comment · 0 complexity · f309ec450f352864a09c1a3ba8047172 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. // GDataFeedLink.h
  17. //
  18. #import "GDataObject.h"
  19. @class GDataFeedBase;
  20. // a link to a feed, like
  21. // <gd:feedLink href="http://example.com/Jo/posts/MyFirstPost/comments" countHint="10">
  22. @interface GDataFeedLink : GDataObject <NSCopying, GDataExtension> {
  23. GDataFeedBase *feed_;
  24. }
  25. + (id)feedLinkWithHref:(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. - (NSNumber *)countHint;
  35. - (void)setCountHint:(NSNumber *)val;
  36. - (NSString *)rel;
  37. - (void)setRel:(NSString *)str;
  38. - (GDataFeedBase *)feed;
  39. - (void)setFeed:(GDataFeedBase *)feed;
  40. // convert the href string into an URL
  41. - (NSURL *)URL;
  42. @end