PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 67 lines | 33 code | 17 blank | 17 comment | 1 complexity | c3b702a17ec802dfd66cfea946729d78 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//  GDataEntryCodeSearch.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE
21
22#import "GDataEntryBase.h"
23
24#undef _EXTERN
25#undef _INITIALIZE_AS
26#ifdef GDATAENTRYCODESEARCH_DEFINE_GLOBALS
27#define _EXTERN 
28#define _INITIALIZE_AS(x) =x
29#else
30#define _EXTERN GDATA_EXTERN
31#define _INITIALIZE_AS(x)
32#endif
33
34_EXTERN NSString* const kGDataCodeSearchDefaultServiceVersion _INITIALIZE_AS(@"2.0");
35
36_EXTERN NSString* const kGDataCategoryCodeSearch _INITIALIZE_AS(@"http://schemas.google.com/codesearch/2006#result"); // from CodeSearchEntry.java
37
38_EXTERN NSString* const kGDataNamespaceCodeSearch _INITIALIZE_AS(@"http://schemas.google.com/codesearch/2006");
39_EXTERN NSString* const kGDataNamespaceCodeSearchPrefix _INITIALIZE_AS(@"gcs");
40
41_EXTERN NSString* const kGDataCodeSearchFeed _INITIALIZE_AS(@"http://www.google.com/codesearch/feeds/search");
42
43#import "GDataCodeSearchFile.h"
44#import "GDataCodeSearchMatch.h"
45#import "GDataCodeSearchPackage.h"
46
47@interface GDataEntryCodeSearch : GDataEntryBase {
48}
49
50+ (NSDictionary *)codeSearchNamespaces;
51
52+ (GDataEntryCodeSearch *)codeSearchEntryWithFile:(GDataCodeSearchFile *)file
53                                          package:(GDataCodeSearchPackage *)package;
54
55- (GDataCodeSearchFile *)file;
56- (void)setFile:(GDataCodeSearchFile *)file;
57
58- (GDataCodeSearchPackage *)package;
59- (void)setPackage:(GDataCodeSearchPackage *)package;
60
61- (NSArray *)matches;
62- (void)setMatches:(NSArray *)matches;
63- (void)addMatch:(GDataCodeSearchMatch *)match;
64
65@end
66
67#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE