/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Contacts/GDataEntryContactGroup.h

http://macfuse.googlecode.com/ · C++ Header · 66 lines · 30 code · 15 blank · 21 comment · 1 complexity · 64a0b7ebeb563c74a16bddcefc938c8f MD5 · raw file

  1. /* Copyright (c) 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. // GDataEntryContactGroup.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
  19. #import "GDataEntryBase.h"
  20. #import "GDataExtendedProperty.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAENTRYCONTACTGROUP_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. // for a contact groups feed, use these constants with -entryForSystemGroupID
  31. // to find a specific system group entry
  32. _EXTERN NSString* const kGDataSystemGroupIDMyContacts _INITIALIZE_AS(@"Contacts");
  33. _EXTERN NSString* const kGDataSystemGroupIDFriends _INITIALIZE_AS(@"Friends");
  34. _EXTERN NSString* const kGDataSystemGroupIDFamily _INITIALIZE_AS(@"Family");
  35. _EXTERN NSString* const kGDataSystemGroupIDCoworkers _INITIALIZE_AS(@"Coworkers");
  36. // system group identifier, like <gContact:systemGroup id="Contacts"/>
  37. @interface GDataContactSystemGroup : GDataValueConstruct <GDataExtension>
  38. - (NSString *)attributeName; // returns "id"
  39. - (NSString *)identifier;
  40. - (void)setIdentifier:(NSString *)str;
  41. @end
  42. @interface GDataEntryContactGroup : GDataEntryBase
  43. + (GDataEntryContactGroup *)contactGroupEntryWithTitle:(NSString *)title;
  44. - (GDataContactSystemGroup *)systemGroup;
  45. - (void)setSystemGroup:(GDataContactSystemGroup *)obj;
  46. - (NSArray *)extendedProperties;
  47. - (void)setExtendedProperties:(NSArray *)arr;
  48. - (void)addExtendedProperty:(GDataExtendedProperty *)obj;
  49. // note: support for gd:deleted is in GDataEntryBase
  50. @end
  51. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE