2 Copyright (C) 2000-2004 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #ifndef __NGiCal_iCalPerson_H__
24 #define __NGiCal_iCalPerson_H__
26 #include <NGiCal/iCalObject.h>
29 iCalPersonPartStatNeedsAction = 0, /* NEEDS-ACTION (DEFAULT) */
30 iCalPersonPartStatAccepted = 1, /* ACCEPTED */
31 iCalPersonPartStatDeclined = 2, /* DECLINED */
32 /* up to here defined for VJOURNAL */
33 iCalPersonPartStatTentative = 3, /* TENTATIVE */
34 iCalPersonPartStatDelegated = 4, /* DELEGATED */
35 /* up to here defined for VEVENT */
36 iCalPersonPartStatCompleted = 5, /* COMPLETED */
37 iCalPersonPartStatInProcess = 6, /* IN-PROCESS */
38 /* up to there defined for VTODO */
40 /* these are also defined for VJOURNAL, VEVENT and VTODO */
41 iCalPersonPartStatExperimental = 7, /* x-name */
42 iCalPersonPartStatOther = 8 /* iana-token */
45 @interface iCalPerson : iCalObject
49 NSString *rsvp; /* i.e. FALSE */
50 NSString *partStat; /* i.e. NEEDS-ACTION */
51 NSString *role; /* i.e. REQ-PARTICIPANT */
52 NSString *xuid; /* i.e. x22sAAHFf */
57 - (void)setCn:(NSString *)_s;
59 - (NSString *)cnWithoutQuotes;
61 - (void)setEmail:(NSString *)_s;
63 - (NSString *)rfc822Email; /* email without 'mailto:' prefix */
65 - (void)setRsvp:(NSString *)_s;
68 - (void)setXuid:(NSString *)_s;
71 - (void)setRole:(NSString *)_s;
74 - (void)setPartStat:(NSString *)_s;
75 - (NSString *)partStat;
77 - (void)setParticipationStatus:(iCalPersonPartStat)_status;
78 - (iCalPersonPartStat)participationStatus;
80 - (BOOL)isEqualToPerson:(iCalPerson *)_other;
81 - (BOOL)hasSameEmailAddress:(iCalPerson *)_other;
85 #endif /* __NGiCal_iCalPerson_H__ */