PageRenderTime 40ms CodeModel.GetById 36ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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