PageRenderTime 37ms CodeModel.GetById 19ms RepoModel.GetById 1ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-2.0
  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. // GDataEntryCodeSearch.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE
  19. #import "GDataEntryBase.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATAENTRYCODESEARCH_DEFINE_GLOBALS
  23. #define _EXTERN
  24. #define _INITIALIZE_AS(x) =x
  25. #else
  26. #define _EXTERN GDATA_EXTERN
  27. #define _INITIALIZE_AS(x)
  28. #endif
  29. _EXTERN NSString* const kGDataCodeSearchDefaultServiceVersion _INITIALIZE_AS(@"2.0");
  30. _EXTERN NSString* const kGDataCategoryCodeSearch _INITIALIZE_AS(@"http://schemas.google.com/codesearch/2006#result"); // from CodeSearchEntry.java
  31. _EXTERN NSString* const kGDataNamespaceCodeSearch _INITIALIZE_AS(@"http://schemas.google.com/codesearch/2006");
  32. _EXTERN NSString* const kGDataNamespaceCodeSearchPrefix _INITIALIZE_AS(@"gcs");
  33. _EXTERN NSString* const kGDataCodeSearchFeed _INITIALIZE_AS(@"http://www.google.com/codesearch/feeds/search");
  34. #import "GDataCodeSearchFile.h"
  35. #import "GDataCodeSearchMatch.h"
  36. #import "GDataCodeSearchPackage.h"
  37. @interface GDataEntryCodeSearch : GDataEntryBase {
  38. }
  39. + (NSDictionary *)codeSearchNamespaces;
  40. + (GDataEntryCodeSearch *)codeSearchEntryWithFile:(GDataCodeSearchFile *)file
  41. package:(GDataCodeSearchPackage *)package;
  42. - (GDataCodeSearchFile *)file;
  43. - (void)setFile:(GDataCodeSearchFile *)file;
  44. - (GDataCodeSearchPackage *)package;
  45. - (void)setPackage:(GDataCodeSearchPackage *)package;
  46. - (NSArray *)matches;
  47. - (void)setMatches:(NSArray *)matches;
  48. - (void)addMatch:(GDataCodeSearchMatch *)match;
  49. @end
  50. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CODESEARCH_SERVICE