PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Contacts/GDataContactEvent.h

http://macfuse.googlecode.com/
C++ Header | 55 lines | 26 code | 12 blank | 17 comment | 1 complexity | a176de50d4b48798d7f72576afa52c94 MD5 | raw file
 1/* Copyright (c) 2009 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//  GDataContactEvent.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
21
22#import "GDataObject.h"
23#import "GDataWhen.h"
24
25#undef _EXTERN
26#undef _INITIALIZE_AS
27#ifdef GDATACONTACTEVENT_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* kGDataContactEventAnniversary _INITIALIZE_AS(@"anniversary");
36_EXTERN NSString* kGDataContactEventOther       _INITIALIZE_AS(@"other");
37
38@interface GDataContactEvent : GDataObject <GDataExtension>
39
40+ (id)eventWithRel:(NSString *)rel
41             label:(NSString *)label
42              when:(GDataWhen *)when;
43  
44- (NSString *)label;
45- (void)setLabel:(NSString *)str;
46
47- (NSString *)rel;
48- (void)setRel:(NSString *)str;
49
50- (GDataWhen *)when;
51- (void)setWhen:(GDataWhen *)obj;
52
53@end
54
55#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE