PageRenderTime 24ms CodeModel.GetById 10ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Calendar/GDataReminder.h

http://macfuse.googlecode.com/
C++ Header | 68 lines | 31 code | 13 blank | 24 comment | 1 complexity | 1c9d8690e650650795e0300aa36fe5c4 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//  GDataReminder.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
21
22#import "GDataObject.h"
23
24#undef _EXTERN
25#undef _INITIALIZE_AS
26#ifdef GDATAREMINDER_DEFINE_GLOBALS
27#define _EXTERN 
28#define _INITIALIZE_AS(x) =x
29#else
30#define _EXTERN GDATA_EXTERN
31#define _INITIALIZE_AS(x)
32#endif
33
34// When reading reminders from a feed, "none" and "all" do not apply.
35// For an explanation of setting reminder methods when writing an event,
36// see the comments at the top of the Java client library file Reminder.java
37_EXTERN NSString* const kGDataReminderMethodSMS _INITIALIZE_AS(@"sms");
38_EXTERN NSString* const kGDataReminderMethodEmail _INITIALIZE_AS(@"email");
39_EXTERN NSString* const kGDataReminderMethodAlert _INITIALIZE_AS(@"alert");
40_EXTERN NSString* const kGDataReminderMethodNone _INITIALIZE_AS(@"none");
41_EXTERN NSString* const kGDataReminderMethodAll _INITIALIZE_AS(@"all");
42
43// reminder, as in 
44//   <gd:reminder absoluteTime="2005-06-06T16:55:00-08:00" method="sms" />
45//
46// http://code.google.com/apis/gdata/common-elements.html#gdReminder
47
48@interface GDataReminder : GDataObject <GDataExtension> {
49}
50+ (GDataReminder *)reminder;
51
52- (NSString *)days;
53- (void)setDays:(NSString *)str;
54
55- (NSString *)hours;
56- (void)setHours:(NSString *)str;
57
58- (NSString *)minutes;
59- (void)setMinutes:(NSString *)str;
60
61- (NSString *)method;
62- (void)setMethod:(NSString *)str; // use kGDataReminderMethod strings defined above
63
64- (GDataDateTime *)absoluteTime;
65- (void)setAbsoluteTime:(GDataDateTime *)cdate;
66@end
67
68#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE