PageRenderTime 32ms CodeModel.GetById 28ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-2.0
  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. // GDataWebContent.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
  19. #import "GDataObject.h"
  20. #import "GDataExtendedProperty.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAWEBCONTENT_DEFINE_GLOBALS
  24. #define _EXTERN
  25. #define _INITIALIZE_AS(x) =x
  26. #else
  27. #define _EXTERN GDATA_EXTERN
  28. #define _INITIALIZE_AS(x)
  29. #endif
  30. _EXTERN NSString* const kGDataLinkRelWebContent _INITIALIZE_AS(@"http://schemas.google.com/gCal/2005/webContent");
  31. // Calendar Web Content element, inside a <link>, as in
  32. //
  33. // <gCal:webContent url="http://www.google.com/logos/july4th06.gif"
  34. // width="276" height="120" >
  35. // <gCal:webContentGadgetPref name="color" value="green" />
  36. // <gCal:webContentGadgetPref name="military_time" value="false" />
  37. // </gCal:webContent>
  38. //
  39. // http://code.google.com/apis/gdata/calendar.html#gCalwebContent
  40. @interface GDataWebContentGadgetPref : GDataExtendedProperty
  41. + (NSString *)extensionElementURI;
  42. + (NSString *)extensionElementPrefix;
  43. + (NSString *)extensionElementLocalName;
  44. @end
  45. @interface GDataWebContent : GDataObject <GDataExtension>
  46. + (GDataWebContent *)webContentWithURL:(NSString *)urlString
  47. width:(int)width
  48. height:(int)height;
  49. - (NSNumber *)height;
  50. - (void)setHeight:(NSNumber *)num;
  51. - (NSNumber *)width;
  52. - (void)setWidth:(NSNumber *)num;
  53. - (NSString *)URLString;
  54. - (void)setURLString:(NSString *)str;
  55. - (NSString *)display;
  56. - (void)setDisplay:(NSString *)str;
  57. - (NSArray *)gadgetPreferences;
  58. - (void)setGadgetPreferences:(NSArray *)array;
  59. - (void)addGadgetPreference:(GDataWebContentGadgetPref *)obj;
  60. // returning a dictionary of prefs simplifies key-value coding access
  61. - (NSDictionary *)gadgetPreferenceDictionary;
  62. @end
  63. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE