PageRenderTime 31ms CodeModel.GetById 13ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 65 lines | 30 code | 16 blank | 19 comment | 1 complexity | f6526f26ff74e7e40a8973ab39b0343c 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//  GDataContactConstants.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
21
22#import <Foundation/Foundation.h>
23
24#import "GDataDefines.h"
25
26#undef _EXTERN
27#undef _INITIALIZE_AS
28#ifdef GDATACONTACTCONSTANTS_DEFINE_GLOBALS
29#define _EXTERN
30#define _INITIALIZE_AS(x) =x
31#else
32#define _EXTERN GDATA_EXTERN
33#define _INITIALIZE_AS(x)
34#endif
35
36_EXTERN NSString* const kGDataContactServiceV2 _INITIALIZE_AS(@"2.0");
37_EXTERN NSString* const kGDataContactServiceV3 _INITIALIZE_AS(@"3.0");
38_EXTERN NSString* const kGDataContactDefaultServiceVersion _INITIALIZE_AS(@"3.0");
39
40_EXTERN NSString* const kGDataNamespaceContact       _INITIALIZE_AS(@"http://schemas.google.com/contact/2008");
41_EXTERN NSString* const kGDataNamespaceContactPrefix _INITIALIZE_AS(@"gContact");
42
43_EXTERN NSString* const kGDataCategoryContact        _INITIALIZE_AS(@"http://schemas.google.com/contact/2008#contact");
44_EXTERN NSString* const kGDataCategoryContactGroup   _INITIALIZE_AS(@"http://schemas.google.com/contact/2008#group");
45_EXTERN NSString* const kGDataCategoryContactProfile _INITIALIZE_AS(@"http://schemas.google.com/contact/2008#profile");
46
47// rel values
48_EXTERN NSString* const kGDataContactHome    _INITIALIZE_AS(@"http://schemas.google.com/g/2005#home");
49_EXTERN NSString* const kGDataContactWork    _INITIALIZE_AS(@"http://schemas.google.com/g/2005#work");
50_EXTERN NSString* const kGDataContactOther   _INITIALIZE_AS(@"http://schemas.google.com/g/2005#other");
51
52// link rel values
53_EXTERN NSString* const kGDataContactPhotoRel     _INITIALIZE_AS(@"http://schemas.google.com/contacts/2008/rel#photo");
54_EXTERN NSString* const kGDataContactEditPhotoRel _INITIALIZE_AS(@"http://schemas.google.com/contacts/2008/rel#edit-photo"); // v1 only
55
56
57@interface GDataContactConstants : NSObject
58
59+ (NSString *)coreProtocolVersionForServiceVersion:(NSString *)serviceVersion;
60
61+ (NSDictionary *)contactNamespaces;
62
63@end
64
65#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE