PageRenderTime 11ms CodeModel.GetById 6ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Photos/GDataEXIFTags.h

http://macfuse.googlecode.com/
C++ Header | 68 lines | 21 code | 15 blank | 32 comment | 1 complexity | abb7b848d5966e5c3ddebe3ec3e439f6 MD5 | raw file
 1/* Copyright (c) 2007 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//  GDataExifTags.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
21
22#import "GDataObject.h"
23#import "GDataValueConstruct.h"
24
25//
26// an exif tag, like <exif:name>value</exif:name>
27//
28@interface GDataEXIFTag : GDataValueElementConstruct <GDataExtension>
29
30+ (GDataEXIFTag *)tagWithName:(NSString *)name
31                            value:(NSString *)value;
32- (NSString *)name;
33
34@end
35
36//
37// a group of exif tags, like 
38//
39// <exif:tags> 
40//   <exif:fstop>0.0</exif:fstop>
41//   <exif:make>Nokia</exif:make> 
42// </exif:tags>
43//
44
45@interface GDataEXIFTags : GDataObject <NSCopying, GDataExtension> {
46}
47
48+ (GDataEXIFTags *)EXIFTags;
49
50- (NSArray *)tags;
51- (void)setTags:(NSArray *)tags;
52- (void)addTag:(GDataEXIFTag *)tag;
53
54// utilities for accessing individual tags
55- (NSString *)valueForTagName:(NSString *)name;
56- (void)removeTagWithName:(NSString *)name;
57- (void)setTagWithName:(NSString *)name
58                 textValue:(NSString *)value;
59
60// tagDictionary returns a dictionary of exif tags, with
61// tag names as keys, and tag values as objects.  
62// This is to facilitate key-value coding access to the tags.
63- (NSDictionary *)tagDictionary;
64
65
66@end
67
68#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE