/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/CodeSearch/GDataFeedCodeSearch.h
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// 17// GDataFeedCodeSearch.h 18// 19 20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE 21 22// Since Code Search requires no authentication and has no custom query 23// parameters, it can be used with the base class service and query 24// objects, like this: 25// 26// NSURL *feedURL = [NSURL URLWithString:kGDataCodeSearchFeed]; 27// GDataQuery *query = [GDataQuery queryWithFeedURL:feedURL]; 28// 29// [query setFullTextQueryString:@"package:perl Frodo"]; 30// 31// GDataServiceBase *service = [[GDataServiceGoogle alloc] init]; 32// GDataServiceTicketBase *ticket; 33// ticket = [service fetchQuery:query 34// feedClass:[GDataFeedCodeSearch class] 35// delegate:self 36// didFinishSelector:@selector(ticket:finishedWithFeed:) 37// didFailSelector:@selector(ticket:failedWithError:)]; 38 39 40#import "GDataFeedBase.h" 41#import "GDataEntryCodeSearch.h" 42 43@interface GDataFeedCodeSearch : GDataFeedBase { 44} 45 46+ (GDataFeedCodeSearch *)codeSearchFeed; 47 48+ (GDataFeedCodeSearch *)codeSearchFeedWithXMLData:(NSData *)data; 49 50- (Class)classForEntries; 51 52@end 53 54#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE