PageRenderTime 30ms CodeModel.GetById 15ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/Source/externals/GData/Source/Elements/GDataGeoPt.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 64 lines | 30 code | 11 blank | 23 comment | 1 complexity | d646a61b86ec61df1284b14ca20ebbaf 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//  GDataGeoPt.h
18//
19//  NOTE: As of July 2007, GDataGeoPt is deprecated.  Use GDataGeo instead.
20//
21
22#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
23
24#import "GDataObject.h"
25
26@class GDataDateTime;
27
28// geoPt element, as in
29//   <gd:geoPt lat="27.98778" lon="86.94444" elev="8850.0"/>
30//
31// http://code.google.com/apis/gdata/common-elements.html#gdGeoPt
32
33
34@interface GDataGeoPt : GDataObject <NSCopying, GDataExtension> {
35  NSString *label_;
36  NSNumber *lat_;
37  NSNumber *lon_;
38  NSNumber *elev_;
39  GDataDateTime* time_;
40}
41+ (GDataGeoPt *)geoPtWithLabel:(NSString *)label
42                           lat:(NSNumber *)lat
43                           lon:(NSNumber *)lon
44                          elev:(NSNumber *)elev
45                          time:(GDataDateTime *)aTime;
46
47- (id)initWithXMLElement:(NSXMLElement *)element
48                  parent:(GDataObject *)parent;
49- (NSXMLElement *)XMLElement;
50
51- (NSString *)label;
52- (void)setLabel:(NSString *)str;
53- (NSNumber *)lat;
54- (void)setLat:(NSNumber *)val;
55- (NSNumber *)lon;
56- (void)setLon:(NSNumber *)val;
57- (NSNumber *)elev;
58- (void)setElev:(NSNumber *)val;
59- (GDataDateTime *)time;
60- (void)setTime:(GDataDateTime *)cdate;
61
62@end
63
64#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE