PageRenderTime 35ms CodeModel.GetById 23ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Photos/GDataPhotoConstants.m

http://macfuse.googlecode.com/
Objective C | 56 lines | 22 code | 13 blank | 21 comment | 1 complexity | 001c36003252169dba8d50956ce37974 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//  GDataPhotoConstants.m
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
21
22#define GDATAPHOTOCONSTANTS_DEFINE_GLOBALS 1
23#import "GDataPhotoConstants.h"
24
25#import "GDataEntryBase.h"
26#import "GDataGeo.h"
27#import "GDataMediaGroup.h"
28
29@implementation GDataPhotoConstants
30
31+ (NSDictionary *)photoNamespaces {
32  NSDictionary *baseNS = [GDataEntryBase baseGDataNamespaces];
33  NSMutableDictionary *namespaces;
34
35  namespaces = [NSMutableDictionary dictionaryWithDictionary:baseNS];
36
37  // "gphoto"
38  [namespaces setObject:kGDataNamespacePhotos
39                 forKey:kGDataNamespacePhotosPrefix];
40
41  // "exif"
42  [namespaces setObject:kGDataNamespacePhotosEXIF
43                 forKey:kGDataNamespacePhotosEXIFPrefix];
44  // "media"
45  [namespaces setObject:kGDataNamespaceMedia
46                 forKey:kGDataNamespaceMediaPrefix];
47
48  // geo, georss, gml
49  [namespaces addEntriesFromDictionary:[GDataGeo geoNamespaces]];
50
51  return namespaces;
52}
53
54@end
55
56#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE