/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataWhen.h
C++ Header | 48 lines | 16 code | 11 blank | 21 comment | 2 complexity | 6e258265672ff610b636a943829338c0 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// GDataWhen.h 18// 19 20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE \ 21 || GDATA_INCLUDE_CONTACTS_SERVICE 22 23#import "GDataObject.h" 24 25#import "GDataDateTime.h" 26 27// when element, as in 28// <gd:when startTime="2005-06-06" endTime="2005-06-07" valueString="This weekend"/> 29// 30// http://code.google.com/apis/gdata/common-elements.html#gdWhen 31 32@interface GDataWhen : GDataObject <GDataExtension> { 33} 34 35+ (GDataWhen *)whenWithStartTime:(GDataDateTime *)startTime 36 endTime:(GDataDateTime *)endTime; 37 38- (GDataDateTime *)startTime; 39- (void)setStartTime:(GDataDateTime *)cdate; 40 41- (GDataDateTime *)endTime; 42- (void)setEndTime:(GDataDateTime *)cdate; 43 44- (NSString *)value; 45- (void)setValue:(NSString *)str; 46@end 47 48#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE