/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/WebmasterTools/GDataSiteVerificationMethod.h

http://macfuse.googlecode.com/ · C++ Header · 72 lines · 27 code · 13 blank · 32 comment · 1 complexity · 98a8f39f4179e8f9e55e47ab931be101 MD5 · raw file

  1. /* Copyright (c) 2008 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. // GDataSiteVerificationMethod.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE
  19. #import "GDataObject.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATASITEVERIFICATIONMETHOD_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 kGDataSiteVerificationMethodMetatag _INITIALIZE_AS(@"metatag");
  30. _EXTERN NSString* const kGDataSiteVerificationMethodHTMLPage _INITIALIZE_AS(@"htmlpage");
  31. // Verification method elements, like
  32. //
  33. // <wt:verification-method type="metatag" in-use="false">
  34. // <meta name="verify-v1" content="a2Ai" />
  35. // </wt:verification-method>
  36. //
  37. // and
  38. //
  39. // <wt:verification-method type="htmlpage" in-use="true">456456-google.html
  40. // </wt:verification-method>
  41. //
  42. //
  43. // http://code.google.com/apis/webmastertools/docs/reference.html
  44. @interface GDataSiteVerificationMethod : GDataObject <GDataExtension>
  45. + (id)verificationMethodWithType:(NSString *)type
  46. value:(NSString *)value
  47. isInUse:(BOOL)isInUse;
  48. - (NSString *)type;
  49. - (void)setType:(NSString *)str;
  50. - (BOOL)isInUse;
  51. - (void)setIsInUse:(BOOL)flag;
  52. // value as a string, for htmlpage methods
  53. - (NSString *)value;
  54. - (void)setValue:(NSString *)value;
  55. // value as an array of NSXMLElements, for metatag methods
  56. - (NSArray *)XMLValues;
  57. - (void)setXMLValues:(NSArray *)values;
  58. @end
  59. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE