/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataIM.h

http://macfuse.googlecode.com/ · C++ Header · 75 lines · 38 code · 14 blank · 23 comment · 1 complexity · 0b0cf4d993863531c055d42ba343ee1d 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. // GDataIM.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
  19. #import "GDataObject.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATAIM_DEFINE_GLOBALS
  23. #define _EXTERN
  24. #define _INITIALIZE_AS(x) =x
  25. #else
  26. #define _EXTERN GDATA_EXTERN
  27. #define _INITIALIZE_AS(x)
  28. #endif
  29. _EXTERN NSString* const kGDataIMProtocolAIM _INITIALIZE_AS(@"http://schemas.google.com/g/2005#AIM");
  30. _EXTERN NSString* const kGDataIMProtocolGoogleTalk _INITIALIZE_AS(@"http://schemas.google.com/g/2005#GOOGLE_TALK");
  31. _EXTERN NSString* const kGDataIMProtocolICQ _INITIALIZE_AS(@"http://schemas.google.com/g/2005#ICQ");
  32. _EXTERN NSString* const kGDataIMProtocolJabber _INITIALIZE_AS(@"http://schemas.google.com/g/2005#JABBER");
  33. _EXTERN NSString* const kGDataIMProtocolMSN _INITIALIZE_AS(@"http://schemas.google.com/g/2005#MSN");
  34. _EXTERN NSString* const kGDataIMProtocolNetMeeting _INITIALIZE_AS(@"http://schemas.google.com/g/2005#NETMEETING");
  35. _EXTERN NSString* const kGDataIMProtocolQQ _INITIALIZE_AS(@"http://schemas.google.com/g/2005#QQ");
  36. _EXTERN NSString* const kGDataIMProtocolSkype _INITIALIZE_AS(@"http://schemas.google.com/g/2005#SKYPE");
  37. _EXTERN NSString* const kGDataIMProtocolYahoo _INITIALIZE_AS(@"http://schemas.google.com/g/2005#YAHOO");
  38. // IM element, as in
  39. // <gd:im protocol="http://schemas.google.com/g/2005#MSN"
  40. // address="foo@bar.example.com" label="Alternate"
  41. // rel="http://schemas.google.com/g/2005#other" >
  42. //
  43. // http://code.google.com/apis/gdata/common-elements.html#gdIm
  44. @interface GDataIM : GDataObject <GDataExtension> {
  45. }
  46. + (GDataIM *)IMWithProtocol:(NSString *)protocol
  47. rel:(NSString *)rel
  48. label:(NSString *)label
  49. address:(NSString *)address;
  50. - (NSString *)address;
  51. - (void)setAddress:(NSString *)str;
  52. - (NSString *)label;
  53. - (void)setLabel:(NSString *)str;
  54. - (NSString *)rel;
  55. - (void)setRel:(NSString *)str;
  56. - (NSString *)protocol;
  57. - (void)setProtocol:(NSString *)str;
  58. - (BOOL)isPrimary;
  59. - (void)setIsPrimary:(BOOL)flag;
  60. @end
  61. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE