/EventKit.framework/Headers/EKParticipant.h

https://github.com/jonhull/hd-iphone-app · C Header · 113 lines · 46 code · 15 blank · 52 comment · 0 complexity · e652cc8db639b99090c8f8827f544584 MD5 · raw file

  1. //
  2. // EKParticipant.h
  3. // EventKit
  4. //
  5. // Copyright 2009-2010 Apple Inc. All rights reserved.
  6. //
  7. #if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
  8. #import <Foundation/Foundation.h>
  9. #import <AddressBook/AddressBook.h>
  10. /*!
  11. @enum EKParticipantType
  12. @abstract Value representing the type of attendee.
  13. */
  14. typedef enum {
  15. EKParticipantTypeUnknown,
  16. EKParticipantTypePerson,
  17. EKParticipantTypeRoom,
  18. EKParticipantTypeResource,
  19. EKParticipantTypeGroup
  20. } EKParticipantType;
  21. /*!
  22. @enum EKParticipantRole
  23. @abstract Value representing the role of a meeting participant.
  24. */
  25. typedef enum {
  26. EKParticipantRoleUnknown,
  27. EKParticipantRoleRequired,
  28. EKParticipantRoleOptional,
  29. EKParticipantRoleChair,
  30. EKParticipantRoleNonParticipant
  31. } EKParticipantRole;
  32. /*!
  33. @enum EKParticipantStatus
  34. @abstract Value representing the status of a meeting participant.
  35. */
  36. typedef enum {
  37. EKParticipantStatusUnknown,
  38. EKParticipantStatusPending,
  39. EKParticipantStatusAccepted,
  40. EKParticipantStatusDeclined,
  41. EKParticipantStatusTentative,
  42. EKParticipantStatusDelegated,
  43. EKParticipantStatusCompleted,
  44. EKParticipantStatusInProcess
  45. } EKParticipantStatus;
  46. /*!
  47. @class EKParticipant
  48. @abstract Abstract class representing a partipant attached to an event.
  49. */
  50. @interface EKParticipant : NSObject <NSCopying> {
  51. @private
  52. NSURL *_address;
  53. NSString *_commonName;
  54. NSString *_emailAddress;
  55. EKParticipantStatus _status;
  56. EKParticipantRole _role;
  57. EKParticipantType _type;
  58. BOOL _isSelf;
  59. UInt32 _dirtyFlags;
  60. }
  61. /*!
  62. @property url
  63. @abstract URL representing this participant.
  64. */
  65. @property(nonatomic, readonly) NSURL *URL;
  66. /*!
  67. @property name
  68. @abstract Name of this participant.
  69. */
  70. @property(nonatomic, readonly) NSString *name;
  71. /*!
  72. @property participantStatus
  73. @abstract The status of the attendee.
  74. @discussion Returns the status of the attendee as a EKParticipantStatus value.
  75. */
  76. @property(nonatomic, readonly) EKParticipantStatus participantStatus;
  77. /*!
  78. @property participantRole
  79. @abstract The role of the attendee.
  80. @discussion Returns the role of the attendee as a EKParticipantRole value.
  81. */
  82. @property(nonatomic, readonly) EKParticipantRole participantRole;
  83. /*!
  84. @property participantType
  85. @abstract The type of the attendee.
  86. @discussion Returns the type of the attendee as a EKParticipantType value.
  87. */
  88. @property(nonatomic, readonly) EKParticipantType participantType;
  89. /*!
  90. @method ABRecordWithAddressBook
  91. @abstract Returns the ABRecordRef that represents this participant.
  92. @discussion This method returns the ABRecordRef that represents this participant,
  93. if a match can be found based on email address in the address book
  94. passed. If we cannot find the participant, nil is returned.
  95. */
  96. - (ABRecordRef)ABRecordWithAddressBook:(ABAddressBookRef)addressBook;
  97. @end
  98. #endif // #if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED