/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/CodeSearch/GDataFeedCodeSearch.h

http://macfuse.googlecode.com/ · C++ Header · 54 lines · 10 code · 11 blank · 33 comment · 1 complexity · 26c258c62e0aa247a24e3a61642d9153 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. // GDataFeedCodeSearch.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE
  19. // Since Code Search requires no authentication and has no custom query
  20. // parameters, it can be used with the base class service and query
  21. // objects, like this:
  22. //
  23. // NSURL *feedURL = [NSURL URLWithString:kGDataCodeSearchFeed];
  24. // GDataQuery *query = [GDataQuery queryWithFeedURL:feedURL];
  25. //
  26. // [query setFullTextQueryString:@"package:perl Frodo"];
  27. //
  28. // GDataServiceBase *service = [[GDataServiceGoogle alloc] init];
  29. // GDataServiceTicketBase *ticket;
  30. // ticket = [service fetchQuery:query
  31. // feedClass:[GDataFeedCodeSearch class]
  32. // delegate:self
  33. // didFinishSelector:@selector(ticket:finishedWithFeed:)
  34. // didFailSelector:@selector(ticket:failedWithError:)];
  35. #import "GDataFeedBase.h"
  36. #import "GDataEntryCodeSearch.h"
  37. @interface GDataFeedCodeSearch : GDataFeedBase {
  38. }
  39. + (GDataFeedCodeSearch *)codeSearchFeed;
  40. + (GDataFeedCodeSearch *)codeSearchFeedWithXMLData:(NSData *)data;
  41. - (Class)classForEntries;
  42. @end
  43. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE