PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 81 lines | 36 code | 18 blank | 27 comment | 1 complexity | cb54304b7da7322ff69b3198844f5ee8 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//  GDataWebContent.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
21
22#import "GDataObject.h"
23#import "GDataExtendedProperty.h"
24
25#undef _EXTERN
26#undef _INITIALIZE_AS
27#ifdef GDATAWEBCONTENT_DEFINE_GLOBALS
28#define _EXTERN 
29#define _INITIALIZE_AS(x) =x
30#else
31#define _EXTERN GDATA_EXTERN
32#define _INITIALIZE_AS(x)
33#endif
34
35_EXTERN NSString* const kGDataLinkRelWebContent _INITIALIZE_AS(@"http://schemas.google.com/gCal/2005/webContent");
36
37
38// Calendar Web Content element, inside a <link>, as in
39//
40// <gCal:webContent url="http://www.google.com/logos/july4th06.gif" 
41//                  width="276" height="120" >
42//      <gCal:webContentGadgetPref name="color" value="green" />
43//      <gCal:webContentGadgetPref name="military_time" value="false" />
44// </gCal:webContent>
45//
46// http://code.google.com/apis/gdata/calendar.html#gCalwebContent
47
48@interface GDataWebContentGadgetPref : GDataExtendedProperty
49+ (NSString *)extensionElementURI;
50+ (NSString *)extensionElementPrefix;
51+ (NSString *)extensionElementLocalName;
52@end
53
54@interface GDataWebContent : GDataObject <GDataExtension>
55
56+ (GDataWebContent *)webContentWithURL:(NSString *)urlString
57                                 width:(int)width
58                                height:(int)height;
59
60- (NSNumber *)height;
61- (void)setHeight:(NSNumber *)num;
62
63- (NSNumber *)width;
64- (void)setWidth:(NSNumber *)num;
65
66- (NSString *)URLString;
67- (void)setURLString:(NSString *)str;
68
69- (NSString *)display;
70- (void)setDisplay:(NSString *)str;
71
72- (NSArray *)gadgetPreferences;
73- (void)setGadgetPreferences:(NSArray *)array;
74- (void)addGadgetPreference:(GDataWebContentGadgetPref *)obj;
75
76// returning a dictionary of prefs simplifies key-value coding access
77- (NSDictionary *)gadgetPreferenceDictionary;
78  
79@end
80
81#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE