PageRenderTime 29ms CodeModel.GetById 17ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Calendar/GDataRecurrence.m

http://macfuse.googlecode.com/
Objective C | 62 lines | 22 code | 11 blank | 29 comment | 1 complexity | de756646b60bf3fa8908dad1d1f38c2f MD5 | raw file
 1/* Copyright (c) 2007-2008 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//  GDataRecurrence.m
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
21
22#import "GDataRecurrence.h"
23
24@implementation GDataRecurrence
25// a gd:recurrence, as in
26//
27//  <gd:recurrence>
28//  DTSTART;TZID=America/Los_Angeles:20060314T060000
29//  DURATION:PT3600S ...
30//  END:DAYLIGHT
31//  END:VTIMEZONE
32//  </gd:recurrence>
33//
34// http://code.google.com/apis/gdata/common-elements.html#gdRecurrence
35//
36// See RFC 2445: http://www.ietf.org/rfc/rfc2445.txt
37
38+ (NSString *)extensionElementURI       { return kGDataNamespaceGData; }
39+ (NSString *)extensionElementPrefix    { return kGDataNamespaceGDataPrefix; }
40+ (NSString *)extensionElementLocalName { return @"recurrence"; }
41
42+ (GDataRecurrence *)recurrenceWithString:(NSString *)str {
43  GDataRecurrence* obj = [self object];
44  [obj setStringValue:str];
45  return obj;
46}
47
48- (void)addParseDeclarations {
49  
50  [self addContentValueDeclaration];
51}
52
53- (NSString *)stringValue {
54  return [self contentStringValue]; 
55}
56
57- (void)setStringValue:(NSString *)str {
58  [self setContentStringValue:str];
59}
60@end
61
62#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE