PageRenderTime 138ms CodeModel.GetById 126ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataWhere.h

http://macfuse.googlecode.com/
C++ Header | 66 lines | 28 code | 14 blank | 24 comment | 2 complexity | 20113187a6146cb7e2981c5a5110583b MD5 | raw file
 1/* Copyright (c) 2007-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//  GDataWhere.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE \
21  || GDATA_INCLUDE_CONTACTS_SERVICE
22
23#import "GDataObject.h"
24
25#undef _EXTERN
26#undef _INITIALIZE_AS
27#ifdef GDATAWHERE_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// rel values
36_EXTERN NSString* const kGDataEventWhereEventLocation _INITIALIZE_AS(nil); // use the enclosing event's location
37_EXTERN NSString* const kGDataEventWhereAlternate _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.alternate");
38_EXTERN NSString* const kGDataEventWhereParking _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.parking");
39
40@class GDataEntryLink;
41
42// where element, as in
43// <gd:where rel="http://schemas.google.com/g/2005#event" valueString="Joe's Pub">
44//    <gd:entryLink href="http://local.example.com/10018/JoesPub">
45// </gd:where>
46//
47// http://code.google.com/apis/gdata/common-elements.html#gdWhere
48
49@interface GDataWhere : GDataObject <GDataExtension>
50
51+ (GDataWhere *)whereWithString:(NSString *)str;
52
53- (NSString *)rel;
54- (void)setRel:(NSString *)str;
55
56- (NSString *)label;
57- (void)setLabel:(NSString *)str;
58
59- (NSString *)stringValue; // gets the "valueString" XML attribute
60- (void)setStringValue:(NSString *)str; // sets the "valueString" XML attribute
61
62- (GDataEntryLink *)entryLink;
63- (void)setEntryLink:(GDataEntryLink *)entryLink;
64@end
65
66#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_*_SERVICE